Skip to content

Commit 29fa7ee

Browse files
committed
Add better usage docs for nbgv commands
Fixes #249
1 parent 90ed753 commit 29fa7ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/nbgv/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ public static int Main(string[] args)
9393
syntax.DefineOption("a|all-vars", ref cloudBuildAllVars, false, "Defines ALL version variables as cloud build variables, with a \"NBGV_\" prefix.");
9494
syntax.DefineOption("c|common-vars", ref cloudBuildCommonVars, false, "Defines a few common version variables as cloud build variables, with a \"Git\" prefix (e.g. GitBuildVersion, GitBuildVersionSimple, GitAssemblyInformationalVersion).");
9595
syntax.DefineOptionList("d|define", ref cloudVariables, "Additional cloud build variables to define. Each should be in the NAME=VALUE syntax.");
96+
97+
if (syntax.ActiveCommand == null)
98+
{
99+
Console.WriteLine(syntax.GetHelpText());
100+
Console.WriteLine("Use -h, --help, or -? after a command to get more help about a particular command.");
101+
}
96102
});
97103

98104
if (install.IsActive)

0 commit comments

Comments
 (0)