lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 7cd2353db25228637e5545a543bf4d6e16ad2558
parent cc52ab3da23fe0118407618e5b8ce6e08a2a7039
Author: Sean Enck <sean@ttypty.com>
Date:   Sat, 15 Oct 2022 10:16:49 -0400

outdated command error, help already exits 0

Diffstat:
Mcmd/main.go | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cmd/main.go b/cmd/main.go @@ -80,7 +80,6 @@ func printUsage() { printSubCommand(totpCommand, totp.OnceCommand, "entry", "display the first generated code") printSubCommand(totpCommand, totp.ShortCommand, "entry", "display the first generated code with no details") printCommand(versionCommand, "", "display version information") - os.Exit(0) } func internalCallback(name string) callbackFunction { @@ -313,7 +312,7 @@ func run() *programError { func hashText(args []string) error { if len(args) == 0 { - return errors.New("git diff requires a file") + return errors.New("hash requires a file") } t, err := backend.Load(args[len(args)-1]) if err != nil {