aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Homer <mwh@mwh.geek.nz>2014-06-19 22:29:37 +1200
committerMichael Homer <mwh@mwh.geek.nz>2014-06-19 22:32:40 +1200
commit4cd394f757e3e648349976b227368c104c657ae3 (patch)
treea246f6fc0f44556dac3dd7ba3610ec59b2e32fc6
parentAllow keeping dragged data around with --keep (diff)
downloaddragon-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.c6
1 files changed, 4 insertions, 2 deletions
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) {
bgstack15