public static FSharpProjectOptions WithOtherOptionOptimize([NotNull] this FSharpProjectOptions options, [CanBeNull] bool?optimize)
 {
     return(options.WithOtherOptions(
                options.OtherOptions.WithSwitch("--optimize", optimize)
                ));
 }
 public static FSharpProjectOptions WithOtherOptionDebug([NotNull] this FSharpProjectOptions options, [CanBeNull] bool?debug)
 {
     return(options.WithOtherOptions(
                options.OtherOptions.WithSwitch("--debug", debug)
                ));
 }
예제 #3
0
 /// <summary>
 /// Returns a new instance of <see cref="FSharpProjectOptions" /> with
 /// <see cref="FSharpProjectOptions.OtherOptions"/> <c>--optimize</c> option set to the provided value; if
 /// it already matches the provided value, returns <paramref name="options" />.
 /// </summary>
 /// <param name="options">The options to use as a base for the returned value.</param>
 /// <param name="optimize">The new value for the <c>--optimize</c> option; if <c>null</c>, means option should be removed.</param>
 /// <returns>
 /// Either a new instance of <see cref="FSharpProjectOptions" /> with the option set; or <paramref name="options" />
 /// if it already matches the provided value.
 /// </returns>
 public static FSharpProjectOptions WithOtherOptionOptimize(this FSharpProjectOptions options, bool?optimize)
 {
     return(options.WithOtherOptions(
                options.OtherOptions.WithSwitch("--optimize", optimize)
                ));
 }
예제 #4
0
 /// <summary>
 /// Returns a new instance of <see cref="FSharpProjectOptions" /> with
 /// <see cref="FSharpProjectOptions.OtherOptions"/> <c>--target</c> option set to the provided value; if
 /// it already matches the provided value, returns <paramref name="options" />.
 /// </summary>
 /// <param name="options">The options to use as a base for the returned value.</param>
 /// <param name="target">The new value for the <c>--target</c> option; if <c>null</c>, means option should be removed.</param>
 /// <returns>
 /// Either a new instance of <see cref="FSharpProjectOptions" /> with the option set; or <paramref name="options" />
 /// if it already matches the provided value.
 /// </returns>
 public static FSharpProjectOptions WithOtherOptionTarget(this FSharpProjectOptions options, string?target)
 {
     return(options.WithOtherOptions(
                options.OtherOptions.With("--target:", target)
                ));
 }
예제 #5
0
 /// <summary>
 /// Returns a new instance of <see cref="FSharpProjectOptions" /> with
 /// <see cref="FSharpProjectOptions.OtherOptions"/> <c>--debug</c> option set to the provided value; if
 /// it already matches the provided value, returns <paramref name="options" />.
 /// </summary>
 /// <param name="options">The options to use as a base for the returned value.</param>
 /// <param name="debug">The new value for the <c>--debug</c> option; if <c>null</c>, means option should be removed.</param>
 /// <returns>
 /// Either a new instance of <see cref="FSharpProjectOptions" /> with the option set; or <paramref name="options" />
 /// if it already matches the provided value.
 /// </returns>
 public static FSharpProjectOptions WithOtherOptionDebug(this FSharpProjectOptions options, bool?debug)
 {
     return(options.WithOtherOptions(
                options.OtherOptions.WithSwitch("--debug", debug)
                ));
 }