make the interactive switch not implicit

This commit is contained in:
Nikolche Kolev 2018-06-20 15:53:33 -07:00
parent b23c372077
commit 9cd006f591

View file

@ -24,7 +24,14 @@ namespace Microsoft.DotNet.Cli
{
var fullRestoreOptions = AddImplicitRestoreOptions(new Option[] { CommonOptions.HelpOption() }, true, true);
return fullRestoreOptions.Concat(new Option[] { CommonOptions.VerbosityOption() }).ToArray();
return fullRestoreOptions.Concat(
new Option[] {
CommonOptions.VerbosityOption(),
Create.Option(
"--interactive",
LocalizableStrings.CmdInteractiveRestoreOptionDescription,
Accept.NoArguments()
.ForwardAs("-property:NuGetInteractive=true")) }).ToArray();
}
public static Option[] AddImplicitRestoreOptions(
@ -94,12 +101,7 @@ namespace Microsoft.DotNet.Cli
useShortOptions ? "-f|--force" : "--force",
LocalizableStrings.CmdForceRestoreOptionDescription,
Accept.NoArguments()
.ForwardAs("-property:RestoreForce=true")),
Create.Option(
"--interactive",
showHelp ? LocalizableStrings.CmdInteractiveRestoreOptionDescription : string.Empty,
Accept.NoArguments()
.ForwardAs("-property:NuGetInteractive=true"))
.ForwardAs("-property:RestoreForce=true"))
};
}
}