Skip to content

Commit

Permalink
Merge pull request #1 from riverar/fix-config
Browse files Browse the repository at this point in the history
Fix runtime configuration option
  • Loading branch information
thebookisclosed committed Sep 22, 2019
2 parents c0462a1 + 99398a2 commit 0806eaa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ViVeTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,17 @@ static void ProcessSetConfig(string[] args, FeatureConfigurationAction actionToU
Console.WriteLine("Examples: {0}config runtime 123456 2\n {0}config runtime 456789 2 1 4 1 0 0", helpPrefix);
return;
}
FeatureConfigurationSection sectionToUse = FeatureConfigurationSection.Runtime;
FeatureConfigurationSection sectionToUse;
if (args[1] == "boot")
sectionToUse = FeatureConfigurationSection.Boot;
else if (args[1] == "runtime")
sectionToUse = FeatureConfigurationSection.Runtime;
else
{
Console.WriteLine("Invalid action, only 'add' or 'delete' are supported");
Console.WriteLine("Feature configuration section must be 'boot' or 'runtime'");
return;
}

if (!TryParseDecHexUint(args[2], out uint featureId))
{
Console.WriteLine("Couldn't parse feature ID");
Expand Down

0 comments on commit 0806eaa

Please sign in to comment.