From 1a5070a187380dedf3153843c38e2c536e7a9ee1 Mon Sep 17 00:00:00 2001 From: Will Estes Date: Sat, 12 May 2007 13:11:57 +0000 Subject: [PATCH] parse multiple short concatenated options; patch submitted by Petr Machata flags & ARG_NONE) { - if (optarg) { + if (optarg && !is_short) { scanopt_err (s, opt_offset, is_short, errcode = SCANOPT_ERR_ARG_NOT_ALLOWED); INC_INDEX (s, 1); return errcode; } - INC_INDEX (s, 1); + else if (!optarg) + INC_INDEX (s, 1); + else + s->subscript++; return optp->r_val; } -- 2.40.0