code: public final int getNumberOfCommandLineArgs() {
          if (commandLine == null) {
              return 0;
          }
          List<?> args = commandLine.getArgList();
          if (args == null) {
              return 0;
          }
          return args.size();
      }
docs: Returns the number of command-line arguments, or {@code 0} if none are
  available.
  
  @return int