Package org.jnode.shell.syntax

Examples of org.jnode.shell.syntax.FlagArgument


    private boolean onefs;

    public DeleteCommand() {
        super(help_super);
        argPaths     = new FileArgument("paths", Argument.MANDATORY | Argument.MULTIPLE | Argument.EXISTING, help_file);
        flagRecurse  = new FlagArgument("recursive", Argument.OPTIONAL, help_recurse);
        flagForce    = new FlagArgument("force", Argument.OPTIONAL, help_force);
        flagInteract = new FlagArgument("interactive", Argument.OPTIONAL, help_interact);
        flagVerbose  = new FlagArgument("verbose", Argument.OPTIONAL, help_verbose);
        flagOneFS    = new FlagArgument("onefs", 0, help_onefs);
        registerArguments(argPaths, flagRecurse, flagForce, flagInteract, flagVerbose, flagOneFS);
    }
View Full Code Here


    public TailCommand() {
        super("Print the tail end of a list of files, or stdin.");
        Files        = new FileArgument("files", Argument.OPTIONAL | Argument.MULTIPLE, help_files);
        Bytes        = new StringArgument("bytes", Argument.EXISTING | Argument.OPTIONAL, help_bytes);
        Lines        = new StringArgument("lines", Argument.EXISTING | Argument.OPTIONAL, help_lines);
        Follow       = new FlagArgument("follow", Argument.OPTIONAL, help_follow);
        FollowR      = new FlagArgument("followr", Argument.OPTIONAL, help_follow_retry);
        MaxUnchanged = new IntegerArgument("unchanged", Argument.OPTIONAL, help_unchanged);
        Sleep        = new IntegerArgument("sleep", Argument.OPTIONAL, help_sleep);
        Retry        = new FlagArgument("retry", Argument.OPTIONAL, help_retry);
        Quiet        = new FlagArgument("quiet", Argument.OPTIONAL, help_quiet);
        Verbose      = new FlagArgument("verbose", Argument.OPTIONAL, help_verbose);
        registerArguments(Files, Bytes, Lines, Follow, Retry, FollowR, MaxUnchanged, Sleep, Quiet, Verbose);
    }
View Full Code Here

   
    public CatCommand() {
        super(HELP_SUPER);
        int fileFlags = Argument.MULTIPLE | Argument.EXISTING | FileArgument.HYPHEN_IS_SPECIAL;
        argFile    = new FileArgument("file", fileFlags, HELP_FILE);
        argNumNB   = new FlagArgument("num-nonblank", 0, HELP_NUM_NB);
        argNumAll  = new FlagArgument("num", 0, HELP_NUM);
        argEnds    = new FlagArgument("show-ends", 0, HELP_ENDS);
        argSqueeze = new FlagArgument("squeeze", 0, HELP_SQUEEZE);
        registerArguments(argFile, argNumNB, argNumAll, argEnds, argSqueeze);
       
        argUrl  = new URLArgument("url", Argument.MULTIPLE | Argument.EXISTING, HELP_URL);
        argUrls = new FlagArgument("urls", Argument.OPTIONAL, HELP_URLS);
        registerArguments(argUrl, argUrls);
    }
View Full Code Here

   
    public DFCommand() {
        super(help_super);
        argDevice  = new DeviceArgument("device", Argument.EXISTING, help_device);
        argPath    = new FileArgument("path", Argument.EXISTING, help_path);
        argReadDec = new FlagArgument("human-read-dec", 0, help_read_dec);
        argReadBin = new FlagArgument("human-read-bin", 0, help_read_bin);
        argAll     = new FlagArgument("show-all", 0, help_all);
        argBlock1k = new FlagArgument("block-size-1k", 0, help_block_1k);
        argBlock   = new IntegerArgument("block-size", 0, help_block);
        registerArguments(argDevice, argPath, argReadDec, argReadBin, argAll, argBlock1k, argBlock);
    }
View Full Code Here

    private final FileArgument argPath;
    private final FlagArgument humanReadableArg;

    public DirCommand() {
        super(help_super);
        humanReadableArg = new FlagArgument("humanReadable", Argument.OPTIONAL, help_humanReadable);
        argPath = new FileArgument("path", Argument.OPTIONAL | Argument.MULTIPLE | Argument.EXISTING, help_path);
        registerArguments(argPath, humanReadableArg);
    }
View Full Code Here

     */
    public TeeCommand() {
        super(HELP_SUPER);
        int fileFlags = Argument.MULTIPLE;
        argFile = new FileArgument("files", fileFlags, HELP_FILE);
        argAppend = new FlagArgument("append", 0, HELP_APPEND);
        registerArguments(argFile, argAppend);
    }
View Full Code Here

    private final FlagArgument argRefresh;

    public ClasspathCommand() {
        super(help_super);
        argAdd     = new URLArgument("addUrl", Argument.OPTIONAL, help_add);
        argClear   = new FlagArgument("clear", Argument.OPTIONAL, help_clear);
        argRefresh = new FlagArgument("refresh", Argument.OPTIONAL, help_refresh);
        registerArguments(argAdd, argClear, argRefresh);
    }
View Full Code Here

   
    public SyntaxCommand() {
        super(help_super);
        argAlias   = new AliasArgument("alias", Argument.OPTIONAL, help_alias);
        argFile    = new FileArgument("file", Argument.OPTIONAL, help_file);
        argRemove  = new FlagArgument("remove", Argument.OPTIONAL, help_remove);
        argDump    = new FlagArgument("dump", Argument.OPTIONAL, help_dump);
        argDumpAll = new FlagArgument("dumpAll", Argument.OPTIONAL, help_dump_all);
        registerArguments(argAlias, argFile, argRemove, argDump, argDumpAll);
    }
View Full Code Here

    private final FlagArgument argDebug;

    public KillCommand() {
        super(help_super);
        argThreadID = new IntegerArgument("threadId", Argument.MANDATORY, help_tid);
        argDebug    = new FlagArgument("debug", Argument.OPTIONAL, help_debug);
        registerArguments(argThreadID, argDebug);
    }
View Full Code Here

    private final FlagArgument argVerbose;

    public ThreadCommand() {
        super(help_super);
        argName = new ThreadNameArgument("threadName", Argument.OPTIONAL, help_name);
        argDump = new FlagArgument("groupDump", Argument.OPTIONAL, help_group);
        argVerbose = new FlagArgument("verbose", Argument.OPTIONAL, help_verbose);
        registerArguments(argName, argVerbose, argDump);
    }
View Full Code Here

TOP

Related Classes of org.jnode.shell.syntax.FlagArgument

Copyright © 2018 www.massapicom. 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.