From d926dd0ae80ab3823c5d0d4ee024353b28a4412f Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 7 Apr 2024 19:17:11 +0530 Subject: libnpass/pass_gen_t: PASS_GEN_PRINT -> PASS_GEN_GRAPH --- src/npass/npass.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/npass/npass.c b/src/npass/npass.c index e1f0564..a055317 100644 --- a/src/npass/npass.c +++ b/src/npass/npass.c @@ -27,7 +27,7 @@ void print_usage(void) " Remove password\n" " add pass-name\n" " Add new password\n" - " gen [-d|-a|-p|-l] pass-name\n" + " gen [-d|-a|-g|-l] pass-name\n" " Generate new password\n" " cat pass-name\n" " Show encrypted password\n" @@ -96,9 +96,9 @@ int gen(int argc, char *argv[]) { char *pass; int opt, r = 0; size_t len = 30; - pass_gen_t gen = PASS_GEN_PRINT; + pass_gen_t gen = PASS_GEN_GRAPH; - while ((opt = getopt(argc, argv, "dapl:")) != -1) { + while ((opt = getopt(argc, argv, "dagl:")) != -1) { switch (opt) { case 'd': gen = PASS_GEN_DIGIT; @@ -106,8 +106,8 @@ int gen(int argc, char *argv[]) { case 'a': gen = PASS_GEN_ALNUM; break; - case 'p': - gen = PASS_GEN_PRINT; + case 'g': + gen = PASS_GEN_GRAPH; break; case 'l': len = atoi(optarg); -- cgit v1.2.3