From a97904cbccffa8f138337c243e59ee8f9ffa8cba Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 23 May 2010 20:39:21 +0000 Subject: 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 --- source/blender/blenlib/intern/BLI_args.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/blenlib/intern/BLI_args.c') 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); -- cgit v1.2.3