Examples of FlagArgument


Examples of org.jnode.shell.syntax.FlagArgument

    public HeadCommand() {
        super("Print the head of a list of files, or stdin");
        Files   = new FileArgument("files", Argument.MULTIPLE | Argument.OPTIONAL, help_files);
        Lines   = new StringArgument("lines", Argument.OPTIONAL | Argument.EXISTING, help_lines);
        Bytes   = new StringArgument("bytes", Argument.OPTIONAL | Argument.EXISTING, help_bytes);
        Quiet   = new FlagArgument("quiet", Argument.OPTIONAL, help_quiet);
        Verbose = new FlagArgument("verbose", Argument.OPTIONAL, help_verbose);
        registerArguments(Files, Lines, Bytes, Quiet, Verbose);
    }
View Full Code Here

Examples of org.jnode.shell.syntax.FlagArgument

   
    public PasteCommand() {
        super(help_super);
        int filesFlags = Argument.MULTIPLE | Argument.EXISTING | FileArgument.HYPHEN_IS_SPECIAL;
        argFiles = new FileArgument("files", filesFlags, help_files);
        argSerial = new FlagArgument("serial", 0, help_serial);
        argDelims = new StringArgument("delims", 0, help_delims);
        registerArguments(argFiles, argSerial, argDelims);
    }
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.