From 43d87a5b464b997b7f719b71626d62840e385333 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Fri, 5 Jul 2024 21:41:18 -0400 Subject: [PATCH] Remove "-v" shortcut for "version" argument, as it does not work with Powershell completion; remove "-h" visual option for "help" for consistency --- mutn.go | 2 +- src/cli/printInfo.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mutn.go b/mutn.go index 2f765bc..175e4fd 100644 --- a/mutn.go +++ b/mutn.go @@ -174,7 +174,7 @@ func main() { cli.HelpGen() case "add": cli.HelpAdd() - case "version", "-v": + case "version": cli.Version() default: cli.HelpMain() diff --git a/src/cli/printInfo.go b/src/cli/printInfo.go index 2db2b7d..441ba8e 100644 --- a/src/cli/printInfo.go +++ b/src/cli/printInfo.go @@ -21,8 +21,8 @@ This program comes with absolutely no warranty; type "mutn version" for details. ` + AnsiBold + "Usage:" + backend.AnsiReset + ` mutn [/ [argument] [option]] | [argument] ` + AnsiBold + "Arguments:" + backend.AnsiReset + ` - help|-h Bring up this menu - version|-v Display version and license information + help Bring up this menu + version Display version and license information init Set up MUTN (generates libmutton.ini) tweak Change configuration options copy Copy details of an entry to your clipboard