Skip to content

Commit 242b3fd

Browse files
author
rob
committed
Run clang-format on v1.10.3 staging branch
1 parent 5f80d74 commit 242b3fd

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

libcli.c

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3155,21 +3155,15 @@ static void cli_get_optarg_comphelp(struct cli_def *cli, struct cli_optarg *opta
31553155

31563156
/*
31573157
* Print out actual text into a working buffer that we can then call 'strtok_r' on it. This lets
3158-
* us prepend some optional fields nice and easily. At this point it is one big string, so we can
3158+
* us prepend some optional fields nice and easily. At this point it is one big string, so we can
31593159
* iterate over it making changes (strtok_r) as needed.
31603160
*/
31613161
if (help_insert) {
3162-
helplen = asprintf(&working, "%s%s%s%s%s", (optarg->flags & CLI_CMD_ALLOW_BUILDMODE) ? "* " : "",
3163-
"type '",
3164-
optarg->name ,
3165-
"' to select ",
3166-
optarg->name );
3167-
}
3168-
else {
3169-
helplen = asprintf(&working, "%s%s", (optarg->flags & CLI_CMD_ALLOW_BUILDMODE) ? "* " : "",
3170-
optarg->help );
3162+
helplen = asprintf(&working, "%s%s%s%s%s", (optarg->flags & CLI_CMD_ALLOW_BUILDMODE) ? "* " : "", "type '",
3163+
optarg->name, "' to select ", optarg->name);
3164+
} else {
3165+
helplen = asprintf(&working, "%s%s", (optarg->flags & CLI_CMD_ALLOW_BUILDMODE) ? "* " : "", optarg->help);
31713166
}
3172-
31733167

31743168
// pull the first line
31753169
helpptr = strtok_r(working, "\v", &savelineptr);

0 commit comments

Comments
 (0)