Skip to content

Commit

Permalink
Better CLI error messages (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
xelatihy authored Jan 2, 2022
1 parent d91a262 commit d19ce18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/yocto/yocto_cli.h
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ inline bool parse_cli(
return parse_cli(command, args, pos, error);
} else {
// check option
if (pos < args.size() - 1 && args[pos].find("--") != 0) {
if (pos < args.size() && args[pos].find("--") != 0) {
error = "command should start with option";
return false;
}
Expand Down

0 comments on commit d19ce18

Please sign in to comment.