package com.maddenabbott.jenny;

/**
 * The main entry point for Jenny.
 */
public class Application {
  private static final String defaultCommand = "help";

  public static void main(String[] args) {
    String commandName = getCommandName(args, defaultCommand);
  }

  private static String getCommandName(final String[] args, final String defaultCommandName) {
    if (args.length > 0 && args[0] != null) {
      return args[0];
    } else {
      return defaultCommandName;
    }
  }
  }

@@ -26,16 +26,42 @@
 jenny;%0A%0A
+import java.util.Arrays;%0A%0A
 /**%0A * T
@@ -284,16 +284,63 @@
 mmand);%0A
+    String%5B%5D parameters = getParameters(args);%0A
   %7D%0A%0A  p
@@ -545,16 +545,16 @@
 ndName;%0A
-
     %7D%0A  
@@ -554,13 +554,197 @@
    %7D%0A  %7D
+%0A%0A  private static String%5B%5D getParameters(final String%5B%5D args) %7B%0A    if (args.length %3E 1) %7B%0A      return Arrays.copyOfRange(args, 1, args.length);%0A    %7D%0A    return new String%5B%5D%7B %7D;%0A  %7D
 %0A  %7D%0A

Add method to extract parameters from command line args.