diff options
author | midipix <writeonce@midipix.org> | 2018-05-23 00:37:40 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-05-23 00:03:10 -0400 |
commit | 9bfad0da72fbc4e30bbe48e5a2a88c811ac2a375 (patch) | |
tree | 3110b0484c0098ef0351ca4251437faf49df0e4e /src/internal | |
parent | 1456bef093b9986bf3f53bd9acdc31a3a0f19af9 (diff) | |
download | mdso-9bfad0da72fbc4e30bbe48e5a2a88c811ac2a375.tar.bz2 mdso-9bfad0da72fbc4e30bbe48e5a2a88c811ac2a375.tar.xz |
argv.h: whitespace meditation.
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/argv/argv.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h index 6907765..9374bcc 100644 --- a/src/internal/argv/argv.h +++ b/src/internal/argv/argv.h @@ -355,13 +355,16 @@ static void argv_scan( } if (option->optarg == ARGV_OPTARG_NONE) { - if (!fnext && ch && (*ch == '-')) + if (!fnext && ch && (*ch == '-')) { ferr = ARGV_ERROR_OPTARG_NONE; - else + } else { fval = false; - } else if (!fnext) + } + + } else if (!fnext) { fval = true; - else if (option->optarg == ARGV_OPTARG_REQUIRED) { + + } else if (option->optarg == ARGV_OPTARG_REQUIRED) { if (ch && is_short_option(ch)) ferr = ARGV_ERROR_OPTARG_REQUIRED; else if (ch && is_long_option(ch)) @@ -385,8 +388,9 @@ static void argv_scan( else fval = ch; } - } else + } else { ferr = ARGV_ERROR_SHORT_OPTION; + } } else if (!fnoscan && (fhybrid || is_long_option(ch))) { ch += (fhybrid ? 1 : 2); |