mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-03 19:01:31 +00:00
Add help for wtf?
This commit is contained in:
parent
5c9eb4f43b
commit
cb11c0a329
@ -1256,6 +1256,10 @@ static int cmd_write(void *data, const char *input) {
|
|||||||
str++;
|
str++;
|
||||||
}
|
}
|
||||||
if (*str == 'f') {
|
if (*str == 'f') {
|
||||||
|
if (str[1] == '?') {
|
||||||
|
r_core_cmd_help (core, help_msg_wt);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
const char *prefix = r_str_trim_ro (str + 1);
|
const char *prefix = r_str_trim_ro (str + 1);
|
||||||
if (!*prefix) {
|
if (!*prefix) {
|
||||||
prefix = "dump";
|
prefix = "dump";
|
||||||
@ -1263,6 +1267,10 @@ static int cmd_write(void *data, const char *input) {
|
|||||||
filename = r_str_newf ("%s-0x%08"PFMT64x, prefix, core->offset);
|
filename = r_str_newf ("%s-0x%08"PFMT64x, prefix, core->offset);
|
||||||
} else {
|
} else {
|
||||||
if (*str) {
|
if (*str) {
|
||||||
|
if (str[1] == '?') {
|
||||||
|
r_core_cmd_help (core, help_msg_wt);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
filename = r_str_trim_ro (str);
|
filename = r_str_trim_ro (str);
|
||||||
} else {
|
} else {
|
||||||
filename = "";
|
filename = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user