diff options
Diffstat (limited to 'args.c')
| -rw-r--r-- | args.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -11,12 +11,13 @@ void parse_args(client_state* state, int argc, char* argv[]) { {"center", no_argument, 0, 'c'}, {"exact-match", no_argument, 0, 'e'}, {"verbose", no_argument, 0, 'v'}, + {"password", no_argument, 0, 'P'}, {0, 0, 0, 0} }; int opt; int long_index = 0; - while ((opt = getopt_long(argc, argv, "l:cev", long_opts, &long_index)) != -1) { + while ((opt = getopt_long(argc, argv, "l:cevP", long_opts, &long_index)) != -1) { switch (opt) { case 'l': state->lines = atoi(optarg); @@ -30,6 +31,9 @@ void parse_args(client_state* state, int argc, char* argv[]) { case 'v': state->verbose = true; break; + case 'P': + state->password = true; + break; default: fprintf(stderr, "Usage: NOT WHAT YOU TYPED\n"); break; |
