java.lang.Object
net.i2p.util.CommandLine
org.klomp.snark.SnarkCommandLine

public class SnarkCommandLineextends CommandLine
Simple command line access to various utilities. Not a public API. Subject to change. Apps and plugins should use specific classes.
  • Field Details

    • SCLASSES

      protected static final List<String> SCLASSES
      List of storage class specifiers.
  • Constructor Details

    • SnarkCommandLine

      protected SnarkCommandLine()
      Not instantiable: the class is a namespace for main(String[]).
  • Method Details

    • main

      public static void main(String[] args)
      Run one command against the snark utility classes, or print the usage when none is given.
      Parameters:
      args - the command name followed by its arguments; empty prints the usage and exits 1
    • usage

      private static void usage(List<String> classes)
      Prints the version line, the usage line, and every available command.
      Parameters:
      classes - the command classes to list