From fb1f418bda543af10195828a19a7c8cc2b250f8c Mon Sep 17 00:00:00 2001 From: Jameson Rollins Date: Mon, 11 Jan 2010 23:17:38 -0500 Subject: rename keys-from-userid command to more accurate keys-for-userid leave the old command for now, but warn as deprecated. --- src/monkeysphere | 11 ++++++++--- src/share/common | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/monkeysphere b/src/monkeysphere index bc390cc..233e63f 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -50,7 +50,7 @@ subcommands: subkey-to-ssh-agent (s) store authentication subkey in ssh-agent sshfpr (f) KEYID output ssh fingerprint of gpg key - keys-from-userid (u) USERID output valid keys for user id literal + keys-for-userid (u) USERID output valid keys for user id literal gen-subkey (g) [KEYID] generate an authentication subkey --length (-l) BITS key length in bits (2048) @@ -275,8 +275,13 @@ case $COMMAND in gpg_ssh_fingerprint "$@" ;; - 'keys-from-userid'|'u') - keys_from_userid "$@" + 'keys-for-userid'|'u') + keys_for_userid "$@" + ;; + + 'keys-from-userid') + echo "Warning: this usage is deprecated. Please use 'keys-for-userid' instead." >&2 + keys_for_userid "$@" ;; 'version'|'--version'|'v') diff --git a/src/share/common b/src/share/common index de97ef7..7bacd4e 100644 --- a/src/share/common +++ b/src/share/common @@ -762,7 +762,7 @@ process_user_id() { } # output all valid keys for specified user ID literal -keys_from_userid() { +keys_for_userid() { local userID local noKey= local nKeys -- cgit v1.2.3