system/dd: print help and abort on unknown options

This commit is contained in:
YAMAMOTO Takashi 2024-11-22 12:33:05 +09:00 committed by Xiang Xiao
parent 9c7a65e1e7
commit 1caf06bd77

View file

@ -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)