-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Make it clear the "details" of command are available #3890
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi and thanks for the contribution! Some comments on the PR:
- I don't think this is exactly what @XVilka meant in his bug. We would like something that would be generic and not specific to the
w
command. There are many other commands that have??
available and we want to show a similar help message for all of them. That's why we have rzshell - these
cmd_descs.c
/cmd_descs.h
files, as you can read at the head of the files, are automatically generated from the.yaml
files you can find at https://github.com/rizinorg/rizin/tree/dev/librz/core/cmd_descs . You should modify the .yaml files and re-build the project (this will update thecmd_descs.c
/cmd_descs.h
files). - However, since this change should be done for all commands that have some "details" available, I believe this change should be done somewhere in cmd_api.c
show i do the same for other commands too? |
Yes but in a general way. You should not modify the summary of each command manually. |
please install pyaml and clang-format, then rebuild and run ./sys/clang-format.py before pushing. |
when i am run w? it is showing the message four times . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please show a screenshot of how it looks like now! |
I think it is not working as expected yet. Like, Now, I think given that when a command is a leaf (there are no subcommands) the details are automatically displayed (try For example:
I hope it make sense. |
thank you for the detailed explanation, making a commit soon! |
Interesting ideas... We'd need to see how it looks like, but in theory I don't mind it. It would make things clearer immediately. However, it's a slightly different problem. The |
The issue i see is that this might make the command line long. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run clang format (requires clang format 16 and then run ./sys/clang-format.py
)
same test is failed again i am seeing into the issue i think we have to make our unit test flexible for the edited summary of subcommand |
is there anything else left in this? |
green CI |
00ca63e
to
07e3151
Compare
Your checklist for this pull request
Detailed description
now when we run the w? command it will show that w?? option is also available
...
Test plan
...
Closing issues
Closes #3879