mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-11 00:06:19 +00:00
Improve help under v?
##cons (#17743)
This commit is contained in:
parent
741d22ed61
commit
e08b963ada
@ -339,6 +339,15 @@ static const char *help_msg_vertical_bar[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char *help_msg_v[] = {
|
||||
"Usage:", "v[*i]", "",
|
||||
"v", "", "open visual panels",
|
||||
"v", " test", "load saved layout with name test",
|
||||
"v=", " test", "save current layout with name test",
|
||||
"vi", " test", "open the file test in 'cfg.editor'",
|
||||
NULL
|
||||
};
|
||||
|
||||
R_API void r_core_cmd_help(const RCore *core, const char *help[]) {
|
||||
r_cons_cmd_help (help, core->print->flags & R_PRINT_FLAGS_COLOR);
|
||||
}
|
||||
@ -1897,10 +1906,7 @@ static int cmd_panels(void *data, const char *input) {
|
||||
return false;
|
||||
}
|
||||
if (*input == '?') {
|
||||
eprintf ("Usage: v[*i]\n");
|
||||
eprintf ("v.test # save current layout with name test\n");
|
||||
eprintf ("v test # load saved layout with name test\n");
|
||||
eprintf ("vi ... # launch 'cfg.editor'\n");
|
||||
r_core_cmd_help (core, help_msg_v);
|
||||
return false;
|
||||
}
|
||||
if (!r_cons_is_interactive ()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user