aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/npass/npass.c10
1 files changed, 5 insertions, 5 deletions
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);