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

WIP: Improve help messages #23420

Merged
merged 3 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions libr/core/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ static const RCoreHelpMessage help_msg_equal = {
"=t", "port", "start the tcp server (echo x|nc ::1 9090 or curl ::1:9090/cmd/x)",
"=r", "port", "start the rap server (o rap://9999)",
"=g", "[?]", "start the gdbserver",
"=h", "[?]", "start the http webserver",
"=H", "[?]", "start the http webserver (and launch the web browser)",
"=h", " port", "start the http webserver on 'port'",
"=H", " port", "start the http webserver on 'port' (launch browser)",
"\nother:", "", "",
"=&", ":port", "start rap server in background (same as '&_=h')",
"=", ":host:port cmd", "run 'cmd' command on remote server",
Expand All @@ -270,9 +270,9 @@ static const RCoreHelpMessage help_msg_equalh = {
"=h-", "", "stop background webserver",
"=h--", "", "stop foreground webserver",
"=h*", "", "restart current webserver",
"=h&", " port", "start http server in background",
"=H", " port", "launch browser and listen for http",
"=H&", " port", "launch browser and listen for http in background",
"=h&", " port", "start http server on 'port' in background",
"=H", " port", "listen for http on 'port' (launch browser)",
maliByatzes marked this conversation as resolved.
Show resolved Hide resolved
"=H&", " port", "listen for http on 'port' in background (launch browser)",
NULL
};

Expand Down
2 changes: 1 addition & 1 deletion libr/core/cmd_help.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static RCoreHelpMessage help_msg_at_at = {

static RCoreHelpMessage help_msg_single_quote = {
"'", "# run a command without evaluating any special character", "",
"'", "?e hello @ world", "print the given string, including the @ sign and the rest (r2.call)",
"'", "?e hello @ world", "print everything after `?e` (r2.call)",
"'", "0x123'?v $$", "run the '?v $$' command in the 0x123 offset (same as r2.callAt)",
"'", "@entry0'?v $$", "same as '0x but supports non numeric offsets",
NULL
Expand Down