aboutsummaryrefslogtreecommitdiff
path: root/args.c
diff options
context:
space:
mode:
Diffstat (limited to 'args.c')
-rw-r--r--args.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/args.c b/args.c
index 5fe2f89..5fbc381 100644
--- a/args.c
+++ b/args.c
@@ -8,16 +8,20 @@
void parse_args(client_state* state, int argc, char* argv[]) {
static struct option long_opts[] = {
{"lines", required_argument, 0, 'l'},
+ {"allow-free-result", required_argument, 0, 'a'},
{0, 0, 0, 0}
};
int opt;
int long_index = 0;
- while ((opt = getopt_long(argc, argv, "l:", long_opts, &long_index)) != -1) {
+ while ((opt = getopt_long(argc, argv, "l:a", long_opts, &long_index)) != -1) {
switch (opt) {
case 'l':
state->lines = atoi(optarg);
break;
+ case 'a':
+ state->allow_free_result = true;
+ break;
default:
fprintf(stderr, "Usage: NOT WHAT YOU TYPED\n");
break;