From: Pierre Habouzit Date: Tue, 16 Oct 2007 08:45:10 GMT Subject: Re: [PATCH 07/25] parse-options: make some arguments optional, add callbacks. Message-ID: <20071016084510.GI6919@artemis.corp> In-Reply-To: <1192523998-19474-7-git-send-email-madcoder@debian.org> This bit is to allow to aggregate options with arguments together when the argument is numeric. +#if 0 + /* can be used to understand -A1B1 like -A1 -B1 */ + if (flag & OPT_SHORT && opt->opt && isdigit(*opt->opt)) { + *(int *)opt->value = strtol(opt->opt, (char **)&opt->opt, 10); + return 0; + } +#endif I'm not a huge fan, but people may like it. Feel free to keep the chunk, drop it, or enable it to your liking. -- ·O· Pierre Habouzit ··O madcoder@debian.org OOO http://www.madism.org