code: public boolean init(String[] args) throws ParseException {
  
          CommandLine cliParser = new GnuParser().parse(jstormClientContext.opts, args);
          if (cliParser.hasOption(JOYConstants.HELP)) {
              printUsage();
              return false;
          }
          jstormClientContext.appName = cliParser.getOptionValue(JOYConstants.APP_NAME_KEY, JOYConstants.CLIIENT_CLASS);
          jstormClientContext.amPriority = Integer.parseInt(cliParser.getOptionValue(JOYConstants.PRIORITY, JOYConstants.DEFAULT_PRIORITY));
          jstormClientContext.amQueue = cliParser.getOptionValue(JOYConstants.QUEUE, JOYConstants.QUEUE_NAME);
          jstormClientContext.amMemory = Integer.parseInt(cliParser.getOptionValue(JOYConstants.MASTER_MEMORY, JOYConstants.DEFAULT_MASTER_MEMORY));
          jstormClientContext.amVCores = Integer.parseInt(cliParser.getOptionValue(JOYConstants.MASTER_VCORES, JOYConstants.DEFAULT_MASTER_VCORES));
  
          jstormClientContext.appMasterJar = cliParser.getOptionValue(JOYConstants.JAR);
          jstormClientContext.libJars = cliParser.getOptionValue(JOYConstants.LIB_JAR);
          jstormClientContext.homeDir = cliParser.getOptionValue(JOYConstants.HOME_DIR);
          jstormClientContext.confFile = cliParser.getOptionValue(JOYConstants.CONF_FILE);
          jstormClientContext.rmHost = cliParser.getOptionValue(JOYConstants.RM_ADDRESS, JOYConstants.EMPTY);
          jstormClientContext.nameNodeHost = cliParser.getOptionValue(JOYConstants.NN_ADDRESS, JOYConstants.EMPTY);
          jstormClientContext.deployPath = cliParser.getOptionValue(JOYConstants.DEPLOY_PATH, JOYConstants.EMPTY);
          jstormClientContext.hadoopConfDir = cliParser.getOptionValue(JOYConstants.HADOOP_CONF_DIR, JOYConstants.EMPTY);
          jstormClientContext.instanceName = cliParser.getOptionValue(JOYConstants.INSTANCE_NAME, JOYConstants.EMPTY);
  
          JstormYarnUtils.checkAndSetOptions(cliParser, jstormClientContext);
          return true;
      }
docs: Parse command line options