
org.seedstack.seed.cli.internal.CliContextInternal Maven / Gradle / Ivy
The newest version!
/*
* Copyright © 2013-2024, The SeedStack authors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.seed.cli.internal;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.Arrays;
class CliContextInternal implements org.seedstack.seed.cli.CliContext {
private final String[] args;
CliContextInternal(String[] args) {
this.args = checkNotNull(args).clone();
}
CliContextInternal(String[] args, int shiftAmount) {
this.args = Arrays.copyOfRange(checkNotNull(args), shiftAmount, args.length);
}
public String[] getArgs() {
return args.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy