diff --git a/implement/PersistentProcess/PersistentProcess.Common/PersistentProcess.Common.csproj b/implement/PersistentProcess/PersistentProcess.Common/PersistentProcess.Common.csproj
index 6ac67098..9fb70fd6 100644
--- a/implement/PersistentProcess/PersistentProcess.Common/PersistentProcess.Common.csproj
+++ b/implement/PersistentProcess/PersistentProcess.Common/PersistentProcess.Common.csproj
@@ -5,14 +5,14 @@
-
-
-
+
+
+
-
+
-
-
+
+
diff --git a/implement/PersistentProcess/PersistentProcess.Test/PersistentProcess.Test.csproj b/implement/PersistentProcess/PersistentProcess.Test/PersistentProcess.Test.csproj
index 288249c1..6bb83fdb 100644
--- a/implement/PersistentProcess/PersistentProcess.Test/PersistentProcess.Test.csproj
+++ b/implement/PersistentProcess/PersistentProcess.Test/PersistentProcess.Test.csproj
@@ -7,14 +7,13 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/implement/PersistentProcess/PersistentProcess.WebHost/PersistentProcess.WebHost.csproj b/implement/PersistentProcess/PersistentProcess.WebHost/PersistentProcess.WebHost.csproj
index 8f025189..1575dc0e 100644
--- a/implement/PersistentProcess/PersistentProcess.WebHost/PersistentProcess.WebHost.csproj
+++ b/implement/PersistentProcess/PersistentProcess.WebHost/PersistentProcess.WebHost.csproj
@@ -11,7 +11,7 @@
-
+
diff --git a/implement/elm-fullstack/Program.cs b/implement/elm-fullstack/Program.cs
index 937d27bc..5cb7c9eb 100644
--- a/implement/elm-fullstack/Program.cs
+++ b/implement/elm-fullstack/Program.cs
@@ -37,7 +37,7 @@ CommandOption verboseLogOptionFromCommand(CommandLineApplication command) =>
var loweredElmOutputOption = buildConfigCmd.Option("--lowered-elm-output", "Path to a directory to write the lowered Elm app files.", CommandOptionType.SingleValue);
var fromOption = buildConfigCmd.Option("--from", "Location to load the app from.", CommandOptionType.SingleValue).IsRequired(allowEmptyStrings: false);
- buildConfigCmd.ThrowOnUnexpectedArgument = false;
+ buildConfigCmd.UnrecognizedArgumentHandling = UnrecognizedArgumentHandling.StopParsingAndCollect;
buildConfigCmd.OnExecute(() =>
{
@@ -60,7 +60,7 @@ CommandOption verboseLogOptionFromCommand(CommandLineApplication command) =>
var (commandName, _, registerExecutableDirectoryOnPath) = CheckIfExecutableIsRegisteredOnPath();
installCmd.Description = "Installs the '" + commandName + "' command for the current user account.";
- installCmd.ThrowOnUnexpectedArgument = true;
+ installCmd.UnrecognizedArgumentHandling = UnrecognizedArgumentHandling.Throw;
installCmd.OnExecute(() =>
{
@@ -71,7 +71,7 @@ CommandOption verboseLogOptionFromCommand(CommandLineApplication command) =>
app.Command("run-server", runServerCmd =>
{
runServerCmd.Description = "Run a web server supporting administration of an Elm-fullstack process via HTTP. This HTTP interface supports deployments, migrations, etc.";
- runServerCmd.ThrowOnUnexpectedArgument = true;
+ runServerCmd.UnrecognizedArgumentHandling = UnrecognizedArgumentHandling.Throw;
var adminUrlsDefault = "http://*:4000";
string[] publicWebHostUrlsDefault = new[] { "http://*", "https://*" };
@@ -212,7 +212,7 @@ CommandOption verboseLogOptionFromCommand(CommandLineApplication command) =>
app.Command("deploy-app", deployAppCmd =>
{
deployAppCmd.Description = "Deploy an app to an Elm-fullstack process. By default, migrates from the previous Elm app state using the `migrate` function in the Elm app code.";
- deployAppCmd.ThrowOnUnexpectedArgument = true;
+ deployAppCmd.UnrecognizedArgumentHandling = UnrecognizedArgumentHandling.Throw;
var getSiteAndPasswordFromOptions = siteAndSitePasswordOptionsOnCommand(deployAppCmd);
var fromOption = deployAppCmd.Option("--from", "Path to the app to deploy.", CommandOptionType.SingleValue).IsRequired(allowEmptyStrings: false);
@@ -239,7 +239,7 @@ CommandOption verboseLogOptionFromCommand(CommandLineApplication command) =>
app.Command("set-elm-app-state", setElmAppStateCmd =>
{
setElmAppStateCmd.Description = "Attempt to set the state of a backend Elm app using the common serialized representation.";
- setElmAppStateCmd.ThrowOnUnexpectedArgument = true;
+ setElmAppStateCmd.UnrecognizedArgumentHandling = UnrecognizedArgumentHandling.Throw;
var siteAndPasswordFromCmd = siteAndSitePasswordOptionsOnCommand(setElmAppStateCmd);
@@ -264,7 +264,7 @@ CommandOption verboseLogOptionFromCommand(CommandLineApplication command) =>
app.Command("truncate-process-history", truncateProcessHistoryCmd =>
{
truncateProcessHistoryCmd.Description = "Remove parts of the process history from the persistent store, which are not needed to restore the process.";
- truncateProcessHistoryCmd.ThrowOnUnexpectedArgument = true;
+ truncateProcessHistoryCmd.UnrecognizedArgumentHandling = UnrecognizedArgumentHandling.Throw;
var siteAndPasswordFromCmd = siteAndSitePasswordOptionsOnCommand(truncateProcessHistoryCmd);
@@ -286,7 +286,7 @@ CommandOption verboseLogOptionFromCommand(CommandLineApplication command) =>
app.Command("archive-process", archiveProcessCmd =>
{
archiveProcessCmd.Description = "Copy the files needed to restore the process and store those in a zip-archive.";
- archiveProcessCmd.ThrowOnUnexpectedArgument = true;
+ archiveProcessCmd.UnrecognizedArgumentHandling = UnrecognizedArgumentHandling.Throw;
var siteAndPasswordFromCmd = siteAndSitePasswordOptionsOnCommand(archiveProcessCmd);
@@ -315,11 +315,11 @@ CommandOption verboseLogOptionFromCommand(CommandLineApplication command) =>
app.Command("user-secrets", userSecretsCmd =>
{
userSecretsCmd.Description = "Manage passwords for accessing the admin interfaces of servers.";
- userSecretsCmd.ThrowOnUnexpectedArgument = true;
+ userSecretsCmd.UnrecognizedArgumentHandling = UnrecognizedArgumentHandling.Throw;
userSecretsCmd.Command("store", storeCmd =>
{
- storeCmd.ThrowOnUnexpectedArgument = true;
+ storeCmd.UnrecognizedArgumentHandling = UnrecognizedArgumentHandling.Throw;
var siteArgument = storeCmd.Argument("site", "Site where to use this secret as password.", multipleValues: false).IsRequired(allowEmptyStrings: false);
var passwordArgument = storeCmd.Argument("password", "Password to use for authentication.", multipleValues: false).IsRequired(allowEmptyStrings: false);
diff --git a/implement/elm-fullstack/elm-fullstack.csproj b/implement/elm-fullstack/elm-fullstack.csproj
index 1576028d..83d8eb23 100644
--- a/implement/elm-fullstack/elm-fullstack.csproj
+++ b/implement/elm-fullstack/elm-fullstack.csproj
@@ -14,7 +14,7 @@
-
+