Skip to content

Commit

Permalink
Change -rd to be forced redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister committed Jun 29, 2020
1 parent 90194a6 commit 2004169
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Options:
-s|--simplify Run a paket simplify
-si|--simplify-interactive Run a paket simplify interactive mode
-sa|--simplify-args <ARGS> Args to pass to paket simplify (Note: <ARGS> should be in quotes)
-rd|--redirects Add args for redirects on install/update/add
-rd|--redirects Force redirects on install/update/add
-ri|--reinstall Delete the lock file and create from scratch
-so|--sort Sort paket files alphabetically
-cc|--clear-cache Clear caches before running
Expand Down
4 changes: 2 additions & 2 deletions src/PaketChain/AdditionalArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ internal class AdditionalArgs

public AdditionalArgs(RunnerArgs runnerArgs)
{
PaketRedirectArgs = runnerArgs.Redirects ? "--redirects --create-new-binding-files --clean-redirects" : "";
PaketRedirectArgs = runnerArgs.Redirects ? "--redirects --create-new-binding-files --clean-redirects" : "--create-new-binding-files --clean-redirects";
PaketForceArgs = runnerArgs.Force ? "--force" : "";
PaketVerboseArgs = runnerArgs.Verbose ? "--verbose" : "";
DotnetVerboseArgs = runnerArgs.Verbose ? "--verbosity d" : "";
}
}
}
}
2 changes: 1 addition & 1 deletion src/PaketChain/RunnerArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ internal class RunnerArgs
[Option("-sa|--simplify-args <ARGS>", "Args to pass to paket simplify (Note: <ARGS> should be in quotes)", CommandOptionType.SingleValue)]
public string SimplifyArgs { get; }

[Option("-rd|--redirects", "Add args for redirects on install/update/add", CommandOptionType.NoValue)]
[Option("-rd|--redirects", "Force redirects on install/update/add", CommandOptionType.NoValue)]
public bool Redirects { get; }

[Option("-ri|--reinstall", "Delete the lock file and create from scratch", CommandOptionType.NoValue)]
Expand Down

0 comments on commit 2004169

Please sign in to comment.