test_class.file: blobit-cli/src/test/java/org/blobit/cli/MainTest.java
test_class.identifier: MainTest
test_case.body: @Test
      public void testMain() throws Exception {
          CommandCreateBucket cl = Main.parseCommandLine(new String[]{"createbucket", "--bucket", "foo"});
          System.out.println("res:" + cl);
          assertEquals("foo", cl.bucket);
          assertEquals("localhost:2181", cl.zk);
      }
test_case.class_method_signature: MainTest.testMain()
test_case.full_signature: @Test public void testMain()
test_case.identifier: testMain
test_case.invocations: parseCommandLine println assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMain()
focal_class.file: blobit-cli/src/main/java/org/blobit/cli/Main.java
focal_class.identifier: Main
focal_class.class_method_signature: Main.main(String... args)
focal_class.full_signature: public static void main(String... args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String... args)
focal_class.return: void
focal_class.signature: void main(String... args)
focal_class.class_method_signature: Main.parseCommandLine(String[] args)
focal_class.full_signature: public static T parseCommandLine(String[] args)
focal_class.identifier: parseCommandLine
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: T
focal_class.signature: T parseCommandLine(String[] args)
focal_method.body: public static void main(String... args) throws Exception {
          AbstractCommand command = Main.parseCommandLine(args);
          try {
              command.execute();
          } catch (Exception err) {
              if (command instanceof Command && ((Command) command).verbose) {
                  err.printStackTrace();
              } else {
                  System.err.println("An error occurred: " + err.getMessage());
              }
              System.exit(1);
          }
      }
focal_method.class_method_signature: Main.main(String... args)
focal_method.full_signature: public static void main(String... args)
focal_method.identifier: main
focal_method.invocations: parseCommandLine execute printStackTrace println getMessage exit
focal_method.modifiers: public static
focal_method.parameters: (String... args)
focal_method.return: void
focal_method.signature: void main(String... args)