From bee4a7f344f1cb773d49c99aaeac476427f87969 Mon Sep 17 00:00:00 2001 From: Adam Patridge Date: Thu, 26 Jul 2018 10:20:49 -0600 Subject: [PATCH] Fix some typos. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aaf399b..aa2ac7e 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ var isSomethingTrue = ArgumentOrEnvironmentVariable("SomeSetting", "SomeProject_ `string ArgumentOrEnvironmentVariable(..., string name, string environmentNamePrefix[, string defaultValue])` -This is a helper method that simply wraps around nested calls to Arugment and EnvironmentVariable (and offering a fallback default). +This is a helper method that simply wraps around nested calls to Argument and EnvironmentVariable (and offering a fallback default). It works by getting a string value with multiple fallbacks: @@ -46,7 +46,7 @@ It works by getting a string value with multiple fallbacks: #### Example -Given a potential command line argument of `SomeSetting` that could also be set via an environment variable prefixed with a project name, get the boolean value or `false` if it isn't found: +Given a potential command line argument of `SomeSetting` that could also be set via an environment variable (optionally prefixed with a project name), get the value from the command line first, falling back to the environment variable next before using the default fallback value if none of those are found: ```csharp var someVariableValue = ArgumentOrEnvironmentVariable("SomeSetting", "SomeProject_", "SomeFallbackValue");