test_class.file: mapreduce/src/test/java/io/github/innofang/util/ArgsParserTest.java
test_class.identifier: ArgsParserTest
test_case.body: @Test
      public void parse() {
          ArrayList<String[]> args = new ArrayList<>();
          args.add(new String[]{"-h"});
          args.add(new String[]{"-s/home/source"});
          args.add(new String[]{"-s", "/home/source", "-t", "/home/innofang/target", "-o", "/output"});
          args.add(new String[]{"-s=/home/source", "-t=/home/innofang/target", "-o=/output"});
  
          ArgsParser parser = ArgsParser.parse(args.get(2));
          System.out.println(parser.getSourceGraphFilePath());
          System.out.println(parser.getTargetGraphFilePath());
          System.out.println(parser.getOutputFolderPath());
      }
test_case.class_method_signature: ArgsParserTest.parse()
test_case.full_signature: @Test public void parse()
test_case.identifier: parse
test_case.invocations: add add add add parse get println getSourceGraphFilePath println getTargetGraphFilePath println getOutputFolderPath
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void parse()
focal_class.declarator: arguments = new HashMap<>()
focal_class.modifier: private static
focal_class.original_string: private static HashMap<String, String> arguments = new HashMap<>();
focal_class.type: HashMap<String, String>
focal_class.var_name: arguments
focal_class.declarator: SOURCE = "source"
focal_class.modifier: private static final
focal_class.original_string: private static final String SOURCE = "source";
focal_class.type: String
focal_class.var_name: SOURCE
focal_class.declarator: TARGET = "target"
focal_class.modifier: private static final
focal_class.original_string: private static final String TARGET = "target";
focal_class.type: String
focal_class.var_name: TARGET
focal_class.declarator: OUTPUT = "output"
focal_class.modifier: private static final
focal_class.original_string: private static final String OUTPUT = "output";
focal_class.type: String
focal_class.var_name: OUTPUT
focal_class.file: mapreduce/src/main/java/io/github/innofang/util/ArgsParser.java
focal_class.identifier: ArgsParser
focal_class.class_method_signature: ArgsParser.ArgsParser()
focal_class.full_signature: private  ArgsParser()
focal_class.identifier: ArgsParser
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ArgsParser()
focal_class.class_method_signature: ArgsParser.parse(String[] args)
focal_class.full_signature: public static ArgsParser parse(String[] args)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: ArgsParser
focal_class.signature: ArgsParser parse(String[] args)
focal_class.class_method_signature: ArgsParser.getSourceGraphFilePath()
focal_class.full_signature: public String getSourceGraphFilePath()
focal_class.identifier: getSourceGraphFilePath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSourceGraphFilePath()
focal_class.class_method_signature: ArgsParser.getTargetGraphFilePath()
focal_class.full_signature: public String getTargetGraphFilePath()
focal_class.identifier: getTargetGraphFilePath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getTargetGraphFilePath()
focal_class.class_method_signature: ArgsParser.getOutputFolderPath()
focal_class.full_signature: public String getOutputFolderPath()
focal_class.identifier: getOutputFolderPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getOutputFolderPath()
focal_method.body: public static ArgsParser parse(String[] args) {
  
          // commons-cli 1.2
  
          Options options = new Options();
  
          Option source = new Option("s", "source", true,
                  "the source graph file path on HDFS (Required)");
          source.setRequired(true);
  
          Option target = new Option("t", "target", true,
                  "the target graph file path on HDFS (Required)");
          target.setRequired(true);
  
          Option output = new Option("o", "output", true,
                  "the output folder path of MapReduce result on HDFS (Required)");
          output.setRequired(true);
  
          Option help = new Option("h", "help", false,
                  "show this help message and exit program");
  
          options.addOption(source)
                  .addOption(target)
                  .addOption(output)
                  .addOption(help);
  
          CommandLineParser parser = new BasicParser();
          HelpFormatter formatter = new HelpFormatter();
          CommandLine cmd = null;
  
          try {
              cmd = parser.parse(options, args);
              arguments.put(SOURCE, cmd.getOptionValue("s"));
              arguments.put(TARGET, cmd.getOptionValue("t"));
              arguments.put(OUTPUT, cmd.getOptionValue("o"));
          } catch (ParseException e) {
              System.out.println(e.getMessage());
              formatter.printHelp("sub-Graph Isomorphism", options, true);
              System.exit(1);
          }
  
          if (cmd.hasOption("h")) {
              formatter.printHelp("sub-Graph Isomorphism", options, true);
              System.exit(0);
          }
  
          return new ArgsParser();
      }
focal_method.class_method_signature: ArgsParser.parse(String[] args)
focal_method.full_signature: public static ArgsParser parse(String[] args)
focal_method.identifier: parse
focal_method.invocations: setRequired setRequired setRequired addOption addOption addOption addOption parse put getOptionValue put getOptionValue put getOptionValue println getMessage printHelp exit hasOption printHelp exit
focal_method.modifiers: public static
focal_method.parameters: (String[] args)
focal_method.return: ArgsParser
focal_method.signature: ArgsParser parse(String[] args)