title: Custom command with server yml command in Dropwizard
body: <p>I have this custom Command:</p>
  
  <pre><code>public final class ArgsCommand extends Command {
  
      private String foobar;
  
      private String baz;
  
      public ArgsCommand() {
          super("args", "sets additional application arguments");
      }
  
      public String getFoobar() {
          return foobar;
      }
  
      public String getBaz() {
          return baz;
      }
  
      @Override
      public void configure(Subparser subparser) {
          subparser.addArgument("-foobar")
                  .dest("foobar")
                  .type(String.class)
                  .required(true)
                  .help("the foobar value for the application");
  
          subparser.addArgument("-baz")
                  .dest("baz")
                  .type(String.class)
                  .required(true)
                  .help("the baz value for the application");
      }
  
      @Override
      public void run(Bootstrap&lt;?&gt; bootstrap, Namespace namespace) throws Exception {
          foobar = namespace.getString("foobar");
          baz = namespace.getString("baz");
  
          if (foobar == null || foobar.length() == 0
                  || baz == null || baz.length() == 0) {
              throw new IllegalArgumentException(
                  "One or more required command-line arguments is missing!");
          }
  
          // do something with the additional arguments
      }
  }
  </code></pre>
  
  <p>...set in the Application as follows:</p>
  
  <pre><code>@Override
  public void initialize(final Bootstrap&lt;FoobarBazConfiguration&gt; bootstrap) {
      bootstrap.addCommand(new ArgsCommand());
  }
  </code></pre>
  
  <p>...and executed from the command-line as follows:</p>
  
  <pre><code>java -jar &lt;jar file&gt; args -foobar asdf -baz 123
  </code></pre>
  
  <hr />
  
  <p>I would like to do this (<em>not working</em>):</p>
  
  <pre><code>java -jar &lt;jar file&gt; server &lt;yml file&gt; args -foobar asdf -baz 123
  </code></pre>
  
  <p>Do I now need a custom command argument to pass and handle the .yml file?</p>