summaryrefslogtreecommitdiffstats
path: root/src/args.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/args.c')
-rw-r--r--src/args.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/args.c b/src/args.c
index 04dd690..4583d44 100644
--- a/src/args.c
+++ b/src/args.c
@@ -51,7 +51,8 @@ enum {
OPT_FMT_RAPT,
OPT_FMT_EV,
OPT_FMT_REV,
- OPT_FMT_TODO
+ OPT_FMT_TODO,
+ OPT_READ_ONLY
};
/*
@@ -665,6 +666,7 @@ parse_args (int argc, char **argv)
{"format-event", required_argument, NULL, OPT_FMT_EV},
{"format-recur-event", required_argument, NULL, OPT_FMT_REV},
{"format-todo", required_argument, NULL, OPT_FMT_TODO},
+ {"read-only", no_argument, NULL, OPT_READ_ONLY},
{NULL, no_argument, NULL, 0}
};
@@ -793,6 +795,9 @@ parse_args (int argc, char **argv)
case OPT_FMT_TODO:
fmt_todo = optarg;
break;
+ case OPT_READ_ONLY:
+ read_only = 1;
+ break;
default:
usage ();
usage_try ();