diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-05-24 00:39:21 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-05-24 00:39:21 +0400 |
commit | a97904cbccffa8f138337c243e59ee8f9ffa8cba (patch) | |
tree | 1469d5d81225d0c7b2a3c95ac2afb23de93d1e41 /source/blender/blenlib | |
parent | 3251d9d523f94f47cc11c3ec52afa91207088842 (diff) |
GNU style long arguments. see help menu.
- swapped meanting of -y/-Y to enable/disable automatic python execution (matches window border -w/-W).
- removed '-B', no reason to have this.
- renamed -fpe to --debug-fpe and added to --help
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_args.h | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/BLI_args.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_args.h b/source/blender/blenlib/BLI_args.h index 61f83ccf6f9..5b0aa31e712 100644 --- a/source/blender/blenlib/BLI_args.h +++ b/source/blender/blenlib/BLI_args.h @@ -43,6 +43,8 @@ void BLI_argsFree(struct bArgs *ba); /* pass starts at 1, -1 means valid all the time */ void BLI_argsAdd(struct bArgs *ba, char *arg, int pass, BA_ArgCallback cb, void *data); +void BLI_argsAddPair(struct bArgs *ba, char *arg_short, char *arg_long, int pass, BA_ArgCallback cb, void *data); + void BLI_argsAddCase(struct bArgs *ba, char *arg, int pass, BA_ArgCallback cb, void *data); /* not case specific */ void BLI_argsParse(struct bArgs *ba, int pass, BA_ArgCallback default_cb, void *data); diff --git a/source/blender/blenlib/intern/BLI_args.c b/source/blender/blenlib/intern/BLI_args.c index 61ddf8314e5..b80b67e2681 100644 --- a/source/blender/blenlib/intern/BLI_args.c +++ b/source/blender/blenlib/intern/BLI_args.c @@ -166,6 +166,12 @@ void BLI_argsAdd(struct bArgs *ba, char *arg, int pass, BA_ArgCallback cb, void internalAdd(ba, arg, pass, 0, cb, data); } +void BLI_argsAddPair(struct bArgs *ba, char *arg_short, char *arg_long, int pass, BA_ArgCallback cb, void *data) +{ + internalAdd(ba, arg_short, pass, 0, cb, data); + internalAdd(ba, arg_long, pass, 0, cb, data); +} + void BLI_argsAddCase(struct bArgs *ba, char *arg, int pass, BA_ArgCallback cb, void *data) { internalAdd(ba, arg, pass, 1, cb, data); |