Package org.jnode.shell.syntax

Examples of org.jnode.shell.syntax.FlagArgument


    public SetCommand() {
        super(help_super);
        keyArg   = new PropertyNameArgument("key", Argument.OPTIONAL, help_key);
        skeyArg  = new ShellPropertyNameArgument("skey", Argument.OPTIONAL, help_skey);
        valueArg = new StringArgument("value", Argument.OPTIONAL, help_value);
        shellArg = new FlagArgument("shell", Argument.OPTIONAL + Argument.SINGLE, help_shell);
        registerArguments(keyArg, skeyArg, valueArg, shellArg);
    }
View Full Code Here


    private final DeviceArgument argDevice;
    private final StringArgument argValue;

    public WLanCtlCommand() {
        super(help_super);
        argSetEssid = new FlagArgument("setEssid", Argument.OPTIONAL, help_set);
        argDevice   = new DeviceArgument("device", Argument.MANDATORY, help_dev, WirelessNetDeviceAPI.class);
        argValue    = new StringArgument("value", Argument.OPTIONAL, help_value);
        registerArguments(argSetEssid, argDevice, argValue);
    }
View Full Code Here

    private final IPv4HostArgument argGateway;
    private final DeviceArgument argDevice;

    public RouteCommand() {
        super(help_super);
        argAdd     = new FlagArgument("add", Argument.OPTIONAL, help_add);
        argDel     = new FlagArgument("del", Argument.OPTIONAL, help_del);
        argTarget  = new IPv4AddressArgument("target", Argument.OPTIONAL, help_target);
        argGateway = new IPv4HostArgument("gateway", Argument.OPTIONAL, help_gateway);
        argDevice  = new DeviceArgument("device", Argument.OPTIONAL, help_device);
        registerArguments(argAdd, argDel, argDevice, argGateway, argTarget);
    }
View Full Code Here

    protected boolean filesStdin;
    protected boolean useStdout;
   
    public Zip(String s) {
        super(s);
        Delete  = new FlagArgument("delete", Argument.OPTIONAL, help_delete);
        Freshen = new FlagArgument("freshen", Argument.OPTIONAL, help_freshen);
        Update  = new FlagArgument("update", Argument.OPTIONAL, help_update);
        Test    = new FlagArgument("test", Argument.OPTIONAL, help_test);
        Move    = new FlagArgument("move", Argument.OPTIONAL, help_move);
        List    = new FlagArgument("list", Argument.OPTIONAL, help_list);
        NoPath  = new FlagArgument("no-path", Argument.OPTIONAL, help_no_path);
        Patterns = new StringArgument("patterns", Argument.OPTIONAL | Argument.MULTIPLE, help_patterns);
        Archive = new FileArgument("archive", Argument.MANDATORY, help_archive);
    }
View Full Code Here

        // from ArchiveCommand
        registerArguments(Verbose, Quiet, Debug);
        // from Zip
        registerArguments(Archive, Patterns, NoPath, Delete, Freshen, Move, Update);
       
        FilesStdin   = new FlagArgument("files-stdin", Argument.OPTIONAL, help_files_stdin);
        NoDirEntry   = new FlagArgument("no-dirs", Argument.OPTIONAL, help_no_dir);
        Recurse      = new FlagArgument("recurse", Argument.OPTIONAL, help_recurse);
        TmpDir       = new FileArgument("tmp-dir", Argument.OPTIONAL | Argument.EXISTING, help_tmpdir);
        NoCompress   = new StringArgument("no-compress", Argument.OPTIONAL, help_no_compress);
        NewerThan    = new StringArgument("newer", Argument.OPTIONAL, help_newer_than);
        OlderThan    = new StringArgument("older", Argument.OPTIONAL, help_older_than);
        Exclude      = new StringArgument("exclude", Argument.OPTIONAL | Argument.MULTIPLE, help_exclude);
View Full Code Here

        // from ArchiveCommand
        registerArguments(Verbose, Quiet, Debug, Stdout);
        // from Zip
        registerArguments(Archive, Patterns, NoPath, Freshen, List, Test, Update);
       
        IgnoreCase = new FlagArgument("ignore-case", Argument.OPTIONAL, help_ignore_case);
        Backup     = new FlagArgument("backup", Argument.OPTIONAL, help_backup);
        Keep       = new FlagArgument("keep", Argument.OPTIONAL, help_keep);
        Overwrite  = new FlagArgument("overwrite", Argument.OPTIONAL, help_overwrite);
        registerArguments(IgnoreCase, Backup, Keep, Overwrite);
    }
View Full Code Here

        super(help_super);
        argLayout   = new KeyboardLayoutArgument("layout", Argument.OPTIONAL, help_layout);
        argCountry  = new CountryArgument("country", Argument.OPTIONAL, help_country);
        argLanguage = new LanguageArgument("language", Argument.OPTIONAL, help_lang);
        argVariant  = new StringArgument("variant", Argument.OPTIONAL, help_variant);
        argTriple   = new FlagArgument("triple", Argument.OPTIONAL, help_triple);
        argAdd      = new FlagArgument("add", Argument.OPTIONAL, help_add);
        argRemove   = new FlagArgument("remove", Argument.OPTIONAL, help_remove);
        argSet      = new FlagArgument("set", Argument.OPTIONAL, help_set);
        argClass    = new ClassNameArgument("class", Argument.OPTIONAL, help_class);
        registerArguments(argTriple, argLayout, argCountry, argLanguage, argVariant,
                          argAdd, argRemove, argSet, argClass);
    }
View Full Code Here

    private final FlagArgument argOn;
    private final FlagArgument argOff;

    public KdbCommand() {
        super(help_super);
        argOn  = new FlagArgument("on", Argument.OPTIONAL, help_on);
        argOff = new FlagArgument("off", Argument.OPTIONAL, help_off);
        registerArguments(argOff, argOn);
    }
View Full Code Here

    private final Log4jLoggerArgument argLogger;

   
    public Log4jCommand() {
        super(help_super);
        argList     = new FlagArgument("list", Argument.OPTIONAL, help_list);
        argSetLevel = new FlagArgument("setLevel", Argument.OPTIONAL, help_set_level);
        argFile     = new FileArgument("file", Argument.OPTIONAL, help_file);
        argUrl      = new URLArgument("url", Argument.OPTIONAL, help_url);
        argLevel    = new Log4jLevelArgument("level", Argument.OPTIONAL, help_level);
        argLogger   = new Log4jLoggerArgument("logger", Argument.OPTIONAL, help_logger);
        registerArguments(argSetLevel, argList, argFile, argLevel, argLogger, argUrl);
View Full Code Here

    private final FlagArgument envArg;
    private final FlagArgument shellArg;

    public EnvCommand() {
        super(help_super);
        envArg   = new FlagArgument("env", Argument.OPTIONAL | Argument.SINGLE, help_env);
        shellArg = new FlagArgument("shell", Argument.OPTIONAL | Argument.SINGLE, help_shell);
        registerArguments(envArg, shellArg);
    }
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.