Package com.articulate.sigma
Class CLIMapParser
java.lang.Object
com.articulate.sigma.CLIMapParser
A simple command-line argument parser that handles options
in any order and returns them as a map.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CLIMapParser
public CLIMapParser()
-
-
Method Details
-
parse
Parses the command-line arguments into a Map. Options should start with '-' or '--'. Only double dash options can have arguments Single dash options can be combined, as in -xvf- Parameters:
args- The array of command-line arguments.- Returns:
- A Map of options (keys) and their values.
-
main
Main method to demonstrate the parser's usage.
-