diff options
Diffstat (limited to 'cli/cli-example.c')
-rw-r--r-- | cli/cli-example.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/cli-example.c b/cli/cli-example.c index 941ddd6..7ed4562 100644 --- a/cli/cli-example.c +++ b/cli/cli-example.c @@ -28,7 +28,7 @@ int calc_distance(const struct cli_cmd *, const struct cli_ctx *) return CLI_RC_OK; } -struct cli_opt *speed_opts[] = {&distance.opt, &time.opt, NULL}; +struct cli_opt *speed_opts[] = {&distance.opt, &time.opt, NULL}; struct cli_opt *distance_opts[] = {&speed.opt, &time.opt, NULL}; const struct cli_cmd my_cmds[] = { @@ -57,8 +57,8 @@ struct cli my_cli = { .header = "This is an example CLI program", .footer = "\nCopyright (c) 2025 Yaroslav de la Peña Smirnov " "<yps@yaroslavps.com>", - .cmds = my_cmds, - .opts = global_opts, + .cmds = my_cmds, + .opts = global_opts, }; int main(int argc, char *argv[]) |