mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
system/debugpoint: fix bug the length option parsing error
The debugpoint program has an option "-l" which requires an argument, which means the optstring to getopt() should be "l:". Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
This commit is contained in:
parent
b84f93c4df
commit
0da270d9d6
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ static bool parse_options(int argc, FAR char *argv[],
|
|||
struct debug_option *opt)
|
||||
{
|
||||
int cmd;
|
||||
while ((cmd = getopt(argc, argv, "r:w:b:x:cl")) != -1)
|
||||
while ((cmd = getopt(argc, argv, "r:w:b:x:cl:")) != -1)
|
||||
{
|
||||
switch (cmd)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue