examples/iot-nirvana/client/src/main/java/com/google/cloud/demo/iot/nirvana/client/ClientOptions.java
/** Parse command line input parameters. */
Parse command line input parameters.
Parse command line input parameters .
public void parse(String args[]) throws ClientException {
    Options options = initOptions();
    try {
      CommandLineParser parser = new DefaultParser();
      cmd = parser.parse(options, args);
    } catch (ParseException e) {
      HelpFormatter formatter = new HelpFormatter();
      formatter.printHelp("iot-core-device-simulator", options);
      throw new ClientException("Failed to parse input parameters", e);
    }
  }
public void parse ( String args [ ] ) throws ClientException { Options options = initOptions ( ) ; try { CommandLineParser parser = new DefaultParser ( ) ; cmd = parser . parse ( options , args ) ; } catch ( ParseException e ) { HelpFormatter formatter = new HelpFormatter ( ) ; formatter . printHelp ( "iot-core-device-simulator" , options ) ; throw new ClientException ( "Failed to parse input parameters" , e ) ; } }
Parse command line input parameters.
Parse command line input parameters .
// Display command line parsing error