Not all commands need long versions

This commit is contained in:
Stephen McQuay 2018-02-28 19:50:55 -08:00
parent 0fe65c2c8a
commit 8a70658b3f
Signed by untrusted user: sm
GPG Key ID: 4E4B72F479BA3CE5

View File

@ -23,8 +23,8 @@ subcommands:
create (c) -- create a fresh keypair
export (e) -- export a public key to stdout
import (i) -- import a public key from stdin
list (ls) -- list configured key info
remove (rm) -- remove a key from the keyring
ls -- list configured key info
rm -- remove a key from the keyring
sign (s) -- sign a file
verify (v) -- verify a detached signature
`
@ -57,7 +57,7 @@ func main() {
}
sub, args := os.Args[2], os.Args[3:]
switch sub {
case "ls", "list":
case "ls":
if err := keyring.ListKeys(root, os.Stdout); err != nil {
fatalf("listing keypair: %v\n", err)
}
@ -127,7 +127,7 @@ func main() {
if err := keyring.Import(root, os.Stdin); err != nil {
fatalf("importing key: %v\n", err)
}
case "remove", "rm":
case "rm":
if len(args) != 1 {
fatalf("missing key id\n\nusage: pm key remove <id>\n")
}