Skip to content

Conversation

@zephyrbot
Copy link

@zephyrbot zephyrbot commented Aug 27, 2024

Backport fd1be98~2..fd1be98 from #77464.

Fixes #80818

ycsin added 2 commits August 27, 2024 13:48
- 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)
The terminal offset for subcommands' help text isn't
computed correctly, fix it.

Signed-off-by: Yong Cong Sin <[email protected]>
Signed-off-by: Yong Cong Sin <[email protected]>
(cherry picked from commit fd1be98)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: Shell Shell subsystem labels Aug 27, 2024
@github-actions
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Oct 27, 2024
@github-actions github-actions bot removed the Stale label Oct 28, 2024
@henrikbrixandersen henrikbrixandersen added this to the v3.7.1 milestone Nov 4, 2024
@henrikbrixandersen
Copy link
Member

@ycsin This needs a bug report in order to get backported.

@ycsin ycsin closed this Nov 4, 2024
@ycsin ycsin reopened this Nov 4, 2024
@ycsin
Copy link
Member

ycsin commented Nov 4, 2024

@ycsin This needs a bug report in order to get backported.

Totally forgot about this backport, added issue, thanks

@nashif nashif merged commit 422657b into v3.7-branch Nov 5, 2024
25 of 26 checks passed
@nashif nashif deleted the backport-77464-to-v3.7-branch branch November 5, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Shell Shell subsystem Backport Backport PR and backport failure issues

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

shell: shell_help: terminal offset of subcommands' help text isn't aligned

6 participants