Skip to content

Commit

Permalink
(GH-36) Allow unofficial build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Jan 25, 2015
1 parent feafa20 commit 749058e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ private static void set_global_options(IList<string> args, ChocolateyConfigurati
.Add("c=|cache=|cachelocation=|cache-location=",
"CacheLocation - Location for download cache, defaults to %TEMP% or value in chocolatey.config file.",
option => config.CacheLocation = option)
.Add("allowunofficial|allow-unofficial|allowunofficialbuild|allow-unofficial-build",
"AllowUnofficialBuild - When not using the official build you must set this flag for choco to continue.",
option => config.AllowUnofficialBuild = option != null)
;
},
(unparsedArgs) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public ChocolateyConfiguration()
ApiKeyCommand = new ApiKeyCommandConfiguration();
PushCommand = new PushCommandConfiguration();
PinCommand = new PinCommandConfiguration();
#if DEBUG
AllowUnofficialBuild = true;
#endif
}

// overrides
Expand Down Expand Up @@ -114,6 +117,7 @@ private void output_tostring(StringBuilder propertyValues, IEnumerable<PropertyI
public bool RegularOuptut { get; set; }
public bool PromptForConfirmation { get; set; }
public bool AcceptLicense { get; set; }
public bool AllowUnofficialBuild { get; set; }


/// <summary>
Expand Down

0 comments on commit 749058e

Please sign in to comment.