Package joptsimple

Examples of joptsimple.OptionSet.nonOptionArguments()


    @Override
    public void run(String[] args) {
        OptionParser parser = new OptionParser();
        OptionSet options = parser.parse(args);

        String path = options.nonOptionArguments().get(1);
        String fileName = options.nonOptionArguments().get(2);
        String destinationPath = options.nonOptionArguments().get(3) + fileName;

        logger.debug(destinationPath);
View Full Code Here


    public void run(String[] args) {
        OptionParser parser = new OptionParser();
        OptionSet options = parser.parse(args);

        String path = options.nonOptionArguments().get(1);
        String fileName = options.nonOptionArguments().get(2);
        String destinationPath = options.nonOptionArguments().get(3) + fileName;

        logger.debug(destinationPath);

        String userID = null;
View Full Code Here

        OptionParser parser = new OptionParser();
        OptionSet options = parser.parse(args);

        String path = options.nonOptionArguments().get(1);
        String fileName = options.nonOptionArguments().get(2);
        String destinationPath = options.nonOptionArguments().get(3) + fileName;

        logger.debug(destinationPath);

        String userID = null;
        LocalPrivateResource lpr = new LocalPrivateResource();
View Full Code Here

    @Override
    public void run(String[] args) {
        OptionParser parser = new OptionParser();
        OptionSet options = parser.parse(args);
        String path = options.nonOptionArguments().get(1);

        OverEncryptClient client = new OverEncryptClient();

        String folderName = null;
        Boolean hasSEL = false;
View Full Code Here

                        String.class);
            }
        };
        OptionSet options = parser.parse(args);

        String path = options.nonOptionArguments().get(1);
        logger.debug(path);

        OverEncryptClient client = new OverEncryptClient();
        AuthenticationClient pinManagementClient = new AuthenticationClient();
        PermissionsClient permissionsClient = new PermissionsClient();
View Full Code Here

    @Override
    public void run(String[] args) {
        OptionParser parser = new OptionParser();
        OptionSet options = parser.parse(args);
        String parentPath = options.nonOptionArguments().get(1);
        String folderName = options.nonOptionArguments().get(2);

        String userId = null;
        String passphrase = null;
        String aclUsers;
View Full Code Here

    @Override
    public void run(String[] args) {
        OptionParser parser = new OptionParser();
        OptionSet options = parser.parse(args);
        String parentPath = options.nonOptionArguments().get(1);
        String folderName = options.nonOptionArguments().get(2);

        String userId = null;
        String passphrase = null;
        String aclUsers;
        String json = null;
View Full Code Here

        .accepts("schema-file", "File containing schema, must not occur with inline schema.")
        .withOptionalArg()
        .ofType(String.class);
   
    OptionSet optionSet = optionParser.parse(args.toArray(new String[0]));
    List<String> nargs = optionSet.nonOptionArguments();
    String schemaFile = schemaFileOption.value(optionSet);
   
    if (nargs.size() != (schemaFile == null ? 2 : 1)) {
      err.println("jsontofrag --schema-file <file> [inline-schema] input-file");
      err.println("   converts JSON to Avro fragments.");
View Full Code Here

        .withOptionalArg()
        .ofType(String.class);
    OptionSet opts = p.parse(args.toArray(new String[0]));
    String keyName = keyOption.value(opts);
   
    List<String> nargs = opts.nonOptionArguments();
    if (nargs.size() != 1) {
      err.println("Expected 1 arg: input_file");
      p.printHelpOn(err);
      return 1;
    }
View Full Code Here

    OptionParser optParser = new OptionParser();
    OptionSpec<String> codecOpt = Util.compressionCodecOption(optParser);
    OptionSpec<Integer> levelOpt = Util.compressionLevelOption(optParser);
    OptionSet opts = optParser.parse(args.toArray(new String[0]));

    List<String> nargs = opts.nonOptionArguments();
    if (nargs.size() > 2) {
      err.println("Expected at most an input file and output file.");
      optParser.printHelpOn(err);
      return 1;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.