package examples.dustin.commandline.jbock;

import net.jbock.Command;
import net.jbock.Option;

/**
 * Demonstrates use of jbock 3.4 to process command-line
 * arguments in a Java application.
 */
public class Main
{

   @Command
   abstract static class Arguments
   {

      /**
       * Verbosity enabled?
       */
      @Option(value = "verbose", mnemonic = 'v')
      abstract boolean verbose();

      /**
       * File name and path
       */
      @Option(value = "file", mnemonic = 'f')
      abstract String file();
   }

   public static void main(String[] arguments)
   {
      Arguments args = Main_Arguments_Parser.create().parseOrExit(arguments);
      System.out.println("The file '" + args.file() + "' was provided and verbosity is set to '" + args.verbose() + "'.");
   }
}

@@ -600,16 +600,20 @@
 s args =
+ new
  Main_Ar
@@ -630,15 +630,8 @@
 rser
-.create
 ().p

update jbock usage to version 3.4.011