Class CommandLine


  • public class CommandLine
    extends java.lang.Object
    utilities for parsing a command line
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandLine()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Properties parse​(java.lang.String[] args)
      create a Properties object representing the properties set by the command line args.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommandLine

        public CommandLine()
    • Method Detail

      • parse

        public static java.util.Properties parse​(java.lang.String[] args)
                                          throws java.lang.IllegalArgumentException
        create a Properties object representing the properties set by the command line args. if args[i] is "-foo" and args[i+1] is "bar", then the result will define a property with key "foo" and value "bar"
        Throws:
        java.lang.IllegalArgumentException - if args == null