Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-design the way ? and ?? are used in rzshell #1838

Merged
merged 1 commit into from Oct 18, 2021

Conversation

ret2libc
Copy link
Member

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the documentation and the rizin book with the relevant information (if needed)

Detailed description

  • <cmd>? allows to list the sub-commands of . If has no
    sub-commands, the full help of is printed instead.
  • <cmd>?? allows to always list the full help of . Useful when
    is both the name of a group and a command itself.
  • output modes are only listed as part of the full help and not
    considered as sub-commands.
  • fix a bug where <cmd><mode>? was just printing the list of
    sub-commands of instead of the full help of .

Test plan

Use ?, then try ? and ?? on already converted commands. In particular, look for commands that have also a description and some examples, like wB, w6, t, %, e and few others. Please notice how before it was impossible to get the list of sub-modes for commands like z that is both the name of a sub-tree and of a command.

Please test it a bit to check it makes sense.

Closing issues

Closes ##657

librz/core/cmd_api.c Outdated Show resolved Hide resolved
@ret2libc ret2libc enabled auto-merge (rebase) October 18, 2021 08:02
* `<cmd>?` allows to list the sub-commands of <cmd>. If <cmd> has no
  sub-commands, the full help of <cmd> is printed instead.
* `<cmd>??` allows to always list the full help of <cmd>. Useful when
  <cmd> is both the name of a group and a command itself.
* output modes are only listed as part of the full help and not
  considered as sub-commands.
* fix a bug where `<cmd><mode>?` was just printing the list of
  sub-commands of <cmd> instead of the full help of <cmd><mode>.
@ret2libc ret2libc merged commit 1172c40 into dev Oct 18, 2021
@ret2libc ret2libc deleted the rzshell-helps-improvements branch August 5, 2022 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants