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/intern/BLI_args.c | |
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/intern/BLI_args.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_args.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |