diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-04-10 15:56:29 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-04-10 17:38:03 +0530 |
commit | d357b93fb422eaa59f84c52f6156748f2acf8dab (patch) | |
tree | 67259bd85e9fd90c95a032f0bdaeb616efe2e791 /src | |
parent | 9c490f66d98af0bdc96583f1cd438955708a5741 (diff) |
npass/help: follow bsd style usage patterns
https://man.openbsd.org/style
Diffstat (limited to 'src')
-rw-r--r-- | src/npass/npass.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/npass/npass.c b/src/npass/npass.c index 54ab664..4a52b7d 100644 --- a/src/npass/npass.c +++ b/src/npass/npass.c @@ -27,23 +27,24 @@ static int ls(const char *path, size_t depth); static void print_usage(void) { - printf("Usage: pass COMMAND\n\n" + printf("Usage: pass [COMMAND | pass_path]\n\n" "Commands:\n" - " init key-id/fingerprint\n" - " Initialize new password storage\n" - " ls [ pass-path ]\n" + " help\n" + " Show this help\n" + " add pass_name\n" + " Add new password\n" + " cat pass_name\n" + " Show encrypted password\n" + " ls [pass_path]\n" " List passwords\n" - " rm pass-name\n" + " rm pass_name\n" " Remove password\n" - " add pass-name\n" - " Add new password\n" - " gen [-d|-a|-g|-l] pass-name\n" + " init key_id | fingerprint\n" + " Initialize new password storage\n" + " gen [-a | -d | -g] [-l length] pass_name\n" " Generate new password\n" - " cat pass-name\n" - " Show encrypted password\n" - " help\n" - " Show this help\n"); + ); } static int cat(const char *path) |