Commit 31dd0a0
shell: devmem: minor optimizations
- Use `SHELL_CMD_ARG_REGISTER` for the main cmd to state the
required number of arguments, this helps to remove the
runtime check from the command, and also print the help
message to the terminal when the argument count is
unexpected.
- Some changes to the help text that hopefully makes the
mandatory and optional arguments more obvious to the user
Signed-off-by: Yong Cong Sin <[email protected]>
Signed-off-by: Yong Cong Sin <[email protected]>
(cherry picked from commit 276ccd0)1 parent e84c516 commit 31dd0a0
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | 318 | | |
323 | 319 | | |
324 | 320 | | |
| |||
365 | 361 | | |
366 | 362 | | |
367 | 363 | | |
368 | | - | |
| 364 | + | |
369 | 365 | | |
370 | 366 | | |
371 | 367 | | |
372 | | - | |
| 368 | + | |
373 | 369 | | |
374 | | - | |
375 | | - | |
| 370 | + | |
| 371 | + | |
0 commit comments