mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-11 22:21:14 -03:00
Clean up woption
1. Bravely use a real enum for has_arg, despite the warnings. 2. Use some C++11 initializers so we don't have to pass an int for this parameter. No functional change expected here.
This commit is contained in:
@@ -303,7 +303,7 @@ static bool parse_flags(int argc, char **argv, bool *continuous_mode, bool *verb
|
||||
{"help", no_argument, nullptr, 'h'},
|
||||
{"version", no_argument, nullptr, 'v'},
|
||||
{"verbose", no_argument, nullptr, 'V'},
|
||||
{nullptr, 0, nullptr, 0}};
|
||||
{}};
|
||||
int opt;
|
||||
bool error = false;
|
||||
while (!error && (opt = getopt_long(argc, argv, short_opts, long_opts, nullptr)) != -1) {
|
||||
|
||||
Reference in New Issue
Block a user