make the interactive switch not implicit
This commit is contained in:
parent
b23c372077
commit
9cd006f591
1 changed files with 9 additions and 7 deletions
|
@ -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"))
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue