From 105c6c4b81ce64192e304827942a9aa65c8dd059 Mon Sep 17 00:00:00 2001 From: midipix Date: May 23 2018 03:49:13 +0000 Subject: argv.h: whitespace meditation. --- diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h index b87e8ce..667fee8 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);