Package org.jnode.shell.syntax

Examples of org.jnode.shell.syntax.StringArgument


    private boolean first = true;
   
    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);
View Full Code Here


    private PrintWriter out;
    private PrintWriter err;

    public FindCommand() {
        super(help_super);
        nameArg     = new StringArgument("name", Argument.OPTIONAL, help_name);
        inameArg    = new StringArgument("iname", Argument.OPTIONAL, help_iname);
        maxdepthArg = new LongArgument("maxdepth", Argument.OPTIONAL, help_max_depth);
        mindepthArg = new LongArgument("mindepth", Argument.OPTIONAL, help_min_depth);
        typeArg     = new StringArgument("type", Argument.OPTIONAL, help_type);
        dirArg      = new FileArgument("directory", Argument.OPTIONAL | Argument.MULTIPLE, help_dir);
        registerArguments(dirArg, mindepthArg, maxdepthArg, inameArg, nameArg, typeArg);
    }
View Full Code Here

   
    public LocaleCommand() {
        super(help_super);
        argLanguage = new LanguageArgument("language", Argument.OPTIONAL, help_lang);
        argCountry  = new CountryArgument("country", Argument.OPTIONAL, help_country);
        argVariant  = new StringArgument("variant", Argument.OPTIONAL, help_variant);
        argList     = new FlagArgument("list", Argument.OPTIONAL, help_lang);
        registerArguments(argLanguage, argCountry, argVariant, argList);
    }
View Full Code Here

    private final FlagArgument argTest;

    public DisassembleCommand() {
        super(help_super);
        argClass  = new ClassNameArgument("className", Argument.MANDATORY, help_class);
        argMethod = new StringArgument("methodName", Argument.OPTIONAL, help_method);
        argLevel  = new IntegerArgument("level", Argument.OPTIONAL, 0, maxLevel, help_level);
        argTest   = new FlagArgument("test", Argument.OPTIONAL, help_test);
        registerArguments(argClass, argMethod, argLevel, argTest);
    }
View Full Code Here

    private final StringArgument argArgs;

    public JavaCommand() {
        super(help_super);
        argClass = new ClassNameArgument("className", Argument.MANDATORY, help_class);
        argArgs  = new StringArgument("arg", Argument.OPTIONAL | Argument.MULTIPLE, help_args);
        registerArguments(argArgs, argClass);
    }
View Full Code Here

    private final StringArgument Args;
   
    public TimeCommand() {
        super(help_super);
        Alias = new AliasArgument("alias", Argument.MANDATORY, help_alias);
        Args  = new StringArgument("args", Argument.MULTIPLE, help_args);
        registerArguments(Alias, Args);
    }
View Full Code Here

    private final StringArgument argName;
    private final StringArgument argSuffix;
   
    public BasenameCommand() {
        super(help_super);
        argName   = new StringArgument("name", Argument.MANDATORY, help_name);
        argSuffix = new StringArgument("suffix", Argument.OPTIONAL, help_suffix);
        registerArguments(argName, argSuffix);
    }
View Full Code Here

   
    private final StringArgument argName;
   
    public DirnameCommand() {
        super(help_super);
        argName = new StringArgument("name", Argument.MANDATORY, help_name);
        registerArguments(argName);
    }
View Full Code Here


    public HistoryCommand() {
        super(help_super);
        argIndex  = new IntegerArgument("index", Argument.OPTIONAL, help_index);
        argPrefix = new StringArgument("prefix", Argument.OPTIONAL, help_prefix);
        argTest   = new FlagArgument("test", Argument.OPTIONAL, help_test);
        registerArguments(argIndex, argPrefix, argTest);
    }
View Full Code Here

        argLoad      = new FlagArgument("load", Argument.OPTIONAL, help_load);
        argReload    = new FlagArgument("reload", Argument.OPTIONAL, help_reload);
        argUnload    = new FlagArgument("unload", Argument.OPTIONAL, help_unload);
        argLoaderUrl = new URLArgument("loader", Argument.OPTIONAL, help_url);
        argPluginID  = new PluginArgument("plugin", Argument.OPTIONAL, help_plugin);
        argVersion   = new StringArgument("version", Argument.OPTIONAL, help_version);
        registerArguments(argPluginID, argLoad, argReload, argUnload,
                argLoaderUrl, argVersion);
    }
View Full Code Here

TOP

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

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.