Package org.planit.utils.args
Class ArgumentParser
- java.lang.Object
-
- org.planit.utils.args.ArgumentParser
-
public class ArgumentParser extends Object
This class parses program arguments and returns them as a map of file types and file locations.- Author:
- gman6028
-
-
Constructor Summary
Constructors Constructor Description ArgumentParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
convertArgsToMap(String[] args)
Convert MetroScan program arguments into a Map of file locations , with file type as key and file location as values
-
-
-
Method Detail
-
convertArgsToMap
public static Map<String,String> convertArgsToMap(String[] args) throws PlanItException
Convert MetroScan program arguments into a Map of file locations , with file type as key and file location as values- Parameters:
args
- command-line arguments- Returns:
- Map of file locations
- Throws:
PlanItException
- thrown if an argument cannot be parsed into a file type and file location
-
-