net.i2p.util

## Class CommandLine

- java.lang.Object
- - net.i2p.util.CommandLine

- Direct Known Subclasses:
    AddressBookCommandLine, RouterCommandLine, SnarkCommandLine

      public class CommandLine
      extends Object

  Simple command line access to various utilities. Not a public API. Subject to change. Apps and plugins should use specific classes.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static List<String>` | `CLASSES`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `CommandLine()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected static void` | `exec(String[] args, List<String> classes)` Will only return if command not found
    `static void` | `main(String[] args)`
    `protected static void` | `printCommands(List<String> classes)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### CLASSES

          protected static final List<String> CLASSES

  - ### Constructor Detail

    - #### CommandLine

          protected CommandLine()

  - ### Method Detail

    - #### exec

          protected static void exec(String[] args,
                                     List<String> classes)

      Will only return if command not found
      Parameters:
        `args` - command arguments
        `classes` - list of classes to search

    - #### main

          public static void main(String[] args)

    - #### printCommands

          protected static void printCommands(List<String> classes)