Class 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 Detail

      • ArgumentParser

        public ArgumentParser()
    • 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