diff options
author | Michael Homer <mwh@mwh.geek.nz> | 2014-06-19 22:29:37 +1200 |
---|---|---|
committer | Michael Homer <mwh@mwh.geek.nz> | 2014-06-19 22:32:40 +1200 |
commit | 4cd394f757e3e648349976b227368c104c657ae3 (patch) | |
tree | a246f6fc0f44556dac3dd7ba3610ec59b2e32fc6 | |
parent | Allow keeping dragged data around with --keep (diff) | |
download | dragon-4cd394f757e3e648349976b227368c104c657ae3.tar.gz dragon-4cd394f757e3e648349976b227368c104c657ae3.tar.bz2 dragon-4cd394f757e3e648349976b227368c104c657ae3.zip |
Add short options -t and -x
These are short for --target and --and-exit, respectively.
-rw-r--r-- | dragon.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) { |