diff --git a/.oclint b/.oclint index 7b4784e42..36d74b3c9 100644 --- a/.oclint +++ b/.oclint @@ -44,8 +44,8 @@ rule-configurations: value: 14 # We're willing to allow slighly more execution paths through a function. - # Default is 300. - - key: HighNPathComplexity + # Default is 200. + - key: NPATH_COMPLEXITY value: 300 disable-rules: diff --git a/src/builtin_argparse.cpp b/src/builtin_argparse.cpp index 0cd1098fd..5bb5a14e6 100644 --- a/src/builtin_argparse.cpp +++ b/src/builtin_argparse.cpp @@ -441,6 +441,7 @@ static int argparse_parse_args(argparse_cmd_opts_t &opts, const wcstring_list_t streams.err.append_format(BUILTIN_ERR_MAX_ARG_COUNT1, cmd, opts.max_args, opts.argv.size()); return STATUS_CMD_ERROR; } + return STATUS_CMD_OK; }