public static T WithCommandLineArgument()

in JetBrains.Profiler.SelfApi/src/CommonConfigHelpers.cs [54:65]


    public static T WithCommandLineArgument<T>(this T config, string argument)
      where T : CommonConfig
    {
      if (argument == null) throw new ArgumentNullException(nameof(argument));

      if (config.OtherArguments != null)
        config.OtherArguments += " " + argument;
      else
        config.OtherArguments = argument;

      return config;
    }