frysk.rsl
Class LogOption

java.lang.Object
  extended by gnu.classpath.tools.getopt.Option
      extended by frysk.rsl.LogOption

public class LogOption
extends Option


Constructor Summary
LogOption(String name)
          Create a logger option, with NAME as the long flag.
LogOption(String name, char c)
          Create a log option, with NAME as the long parameter, and C as the character flag.
 
Method Summary
static void file(File file)
          Parse ARG0 setting log levels, and switching to the specified log file.
(package private) static void parse(Node root, String arg0)
          Parse ARG0 setting log levels.
static void parse(String arg0)
          Parse ARG0 setting log levels.
 void parsed(String arg0)
          Called by option parser; handle option with specified argument.
 
Methods inherited from class gnu.classpath.tools.getopt.Option
getArgumentName, getDescription, getLongName, getShortName, getTakesArgument, isJoined
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogOption

public LogOption(String name)
Create a logger option, with NAME as the long flag.


LogOption

public LogOption(String name,
                 char c)
Create a log option, with NAME as the long parameter, and C as the character flag.

Method Detail

parsed

public void parsed(String arg0)
            throws OptionException
Called by option parser; handle option with specified argument.

Specified by:
parsed in class Option
Parameters:
arg0 - the argument
Throws:
OptionException - if the option or its argument is somehow invalid

parse

public static void parse(String arg0)
                  throws OptionException
Parse ARG0 setting log levels.

Throws:
OptionException

parse

static void parse(Node root,
                  String arg0)
           throws OptionException
Parse ARG0 setting log levels.

Throws:
OptionException

file

public static void file(File file)
Parse ARG0 setting log levels, and switching to the specified log file.