mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
cli: reduce indent in keyword argument processing
Reducing indent makes future changes easier. No functional changes.
This commit is contained in:
parent
4dc3291199
commit
288c3660d8
1 changed files with 9 additions and 7 deletions
|
@ -21,13 +21,15 @@ _process_keyword_arg (const notmuch_opt_desc_t *arg_desc, char next, const char
|
|||
}
|
||||
|
||||
for (keywords = arg_desc->keywords; keywords->name; keywords++) {
|
||||
if (strcmp (arg_str, keywords->name) == 0) {
|
||||
if (arg_desc->opt_flags)
|
||||
*arg_desc->opt_flags |= keywords->value;
|
||||
else
|
||||
*arg_desc->opt_keyword = keywords->value;
|
||||
return TRUE;
|
||||
}
|
||||
if (strcmp (arg_str, keywords->name) != 0)
|
||||
continue;
|
||||
|
||||
if (arg_desc->opt_flags)
|
||||
*arg_desc->opt_flags |= keywords->value;
|
||||
else
|
||||
*arg_desc->opt_keyword = keywords->value;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
if (next != '\0')
|
||||
fprintf (stderr, "Unknown keyword argument \"%s\" for option \"%s\".\n", arg_str, arg_desc->name);
|
||||
|
|
Loading…
Reference in a new issue