public Args()

in command.line/java/com/jetbrains/teamcity/command/Args.java [43:72]


  public Args(final String[] args) {
    if (args == null || args.length == 0) {
      myArgs = new String[] { Help.ID };
      return;
    }
    final LinkedList<String> list = new LinkedList<String>(Arrays.asList(args));
    // extract CommandId
    myCommandId = list.get(0);
    list.remove(0);
    // remove -debug argument
    if (list.contains(DEBUG_ARG)) {
      list.remove(DEBUG_ARG);
      isDebugOn = true;
    }
    // remove -debug-clean-off argument
    if (list.contains(DEBUG_CLEAN_OFF)) {
      list.remove(DEBUG_CLEAN_OFF);
      isCleanOff = true;
    }
    // remove -silent
    if (list.contains(SILENT_ARG)) {
      list.remove(SILENT_ARG);
      isSilentOn = true;
    }
    myArgs = list.toArray(new String[list.size()]);
    for (String arg : myArgs) {
      myArgsLine += arg + " ";
    }
    myArgsLine = myArgsLine.trim();
  }