package jpower.core.opts;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Accessor for Command Line Options and Arguments
 */
public class CommandLine
{
   private final Map<String, String> opts = new HashMap<>();

   private final List<String> arguments = new ArrayList<>();

   public String opt(String key)
   {
      return opts.get(key);
   }

   protected void set(String key, String value)
   {
      opts.put(key, value);
   }

   public String opt(String key, String defaultValue)
   {
      return opts.getOrDefault(key, defaultValue);
   }

   public Map<String, String> opts()
   {
      return opts;
   }

   public List<String> arguments()
   {
      return arguments;
   }

   public boolean bool(String key)
   {
      return opt(key) != null && opt(key).equals("true");
   }
}

@@ -844,11 +844,86 @@
 %22);%0A   %7D
+%0A%0A   public boolean help()%0A   %7B%0A      return opts.containsKey(%22help%22);%0A   %7D
 %0A%7D%0A

Add CommandLine.help() method which returns a boolean of whether or not the help option was specified