Package org.jnode.shell.syntax

Examples of org.jnode.shell.syntax.URLArgument


    private final URLArgument argURL;

    public HexdumpCommand() {
        super(help_super);
        argFile = new FileArgument("file", Argument.OPTIONAL | Argument.EXISTING, help_file);
        argURL  = new URLArgument("url", Argument.OPTIONAL | Argument.EXISTING, help_url);
        registerArguments(argFile, argURL);
    }
View Full Code Here


        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

    private final FlagArgument argClear;
    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 PluginCommand() {
        super(help_super);
        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

    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 PrintWriter err;
   
    public WgetCommand() {
        super(help_super);
        argDebug = new FlagArgument("debug", Argument.OPTIONAL, help_debug);
        argUrl   = new URLArgument("url", Argument.MANDATORY + Argument.MULTIPLE, help_url);
        registerArguments(argUrl, argDebug);
    }
View Full Code Here

TOP

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

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.