Class Arguments
java.lang.Object
com.github.basking2.sdsai.itrex.util.Arguments
Some utility functions for parsing arguments out of an iterator.
This is useful in collecting arguments to functions.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Arguments
public Arguments()
-
-
Method Details
-
parseArgs
Consume all argument values and parse them into a Map. This willsplit(args, 2)
all arguments to form a name-value pair. The value is put into the hash that is returned.- Parameters:
args
- The iterator of name-value pairs.separator
- The string that separates names (the left) from the values (the right).- Returns:
- A map of all names to values parsed out.
-