Skip to content

Commit

Permalink
(#2049) Add version option to help text
Browse files Browse the repository at this point in the history
Provide information about the ability to use the -v, and --version,
options on the top level choco command to print out information about
the current Chocolatey version.

Co-authored-by: DeeHechEss <[email protected]>
  • Loading branch information
gep13 and DeeHechEss committed May 12, 2021
1 parent a992a82 commit e8f76b6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ public static void display_help_message(Container container = null)

"chocolatey".Log().Info(@"This is a listing of all of the different things you can pass to choco.
");
"chocolatey".Log().Info(ChocolateyLoggers.Important, "Options and Switches");

"chocolatey".Log().Info(@"
-v, --version
Version - Prints out the Chocolatey version. Available in 0.9.9+.
");

"chocolatey".Log().Info(ChocolateyLoggers.Important, "Commands");
"chocolatey".Log().Info(@"
{0}
Expand Down

0 comments on commit e8f76b6

Please sign in to comment.