Class Args

java.lang.Object
com.cleancoder.args.Args

public class Args
extends Object
This is the root class. All other methods are invoked either directly or indirectly from this class.
See Also:
Args, ArgsData, ArgsException
  • Field Details

  • Constructor Details

    • Args

      public Args​(String schema, String[] args) throws ArgsException
      Processes args string array according to schema defined in schema string.
      Parameters:
      schema - Set of schema definitions(elementId + elementTail) separated by commas.
    • Example: "p#, ch*, d##" where elementId is p and elementTail is #. Similarly for ch and * are elementId and elementTail respectively.
    • args - String array which may contain command line input.
    • Example: "-p 34 -ch abcd -d 3.2"
    • Throws:
      ArgsException - ArgsException
      See Also:
      ArgsData
  • Method Details