From 4cd394f757e3e648349976b227368c104c657ae3 Mon Sep 17 00:00:00 2001 From: Michael Homer Date: Thu, 19 Jun 2014 22:29:37 +1200 Subject: Add short options -t and -x These are short for --target and --and-exit, respectively. --- dragon.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dragon.c') diff --git a/dragon.c b/dragon.c index 0c0c3b2..4e1de47 100644 --- a/dragon.c +++ b/dragon.c @@ -231,9 +231,11 @@ int main (int argc, char **argv) { } else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--verbose") == 0) { verbose = true; - } else if (strcmp(argv[i], "--target") == 0) { + } else if (strcmp(argv[i], "-t") == 0 + || strcmp(argv[i], "--target") == 0) { mode = MODE_TARGET; - } else if (strcmp(argv[i], "--and-exit") == 0) { + } else if (strcmp(argv[i], "-x") == 0 + || strcmp(argv[i], "--and-exit") == 0) { and_exit = true; } else if (strcmp(argv[i], "-k") == 0 || strcmp(argv[i], "--keep") == 0) { -- cgit