mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
system/dd: print help and abort on unknown options
This commit is contained in:
parent
9c7a65e1e7
commit
1caf06bd77
1 changed files with 5 additions and 0 deletions
|
|
@ -228,6 +228,11 @@ int main(int argc, FAR char **argv)
|
|||
{
|
||||
dd.seek = atoi(&argv[i][5]);
|
||||
}
|
||||
else
|
||||
{
|
||||
print_usage();
|
||||
goto errout_with_paths;
|
||||
}
|
||||
}
|
||||
|
||||
if (infile == NULL || outfile == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue