Fix #7524 - Fix help messages for recursive help parser (#7525)

This commit is contained in:
Ayman Khamouma 2017-05-18 23:13:18 +02:00 committed by radare
parent c1db7a0c67
commit a9a0c7e385
6 changed files with 17 additions and 17 deletions

View File

@ -5269,7 +5269,7 @@ static int cmd_anal_all(RCore *core, const char *input) {
"aa", " ", "alias for 'af@@ sym.*;af@entry0;afva'", //;.afna @@ fcn.*'",
"aa*", "", "analyze all flags starting with sym. (af @@ sym.*)",
"aaa", "[?]", "autoname functions after aa (see afna)",
"aab", "[?]", "aab across io.sections.text",
"aab", "", "aab across io.sections.text",
"aac", " [len]", "analyze function calls (af @@ `pi len~call[1]`)",
"aad", " [len]", "analyze data references to code",
"aae", " [len] ([addr])", "analyze references with ESIL (optionally to address)",

View File

@ -1543,19 +1543,19 @@ static void cmd_debug_reg(RCore *core, const char *str) {
"drl", "", "List all register names",
"drn", " <pc>", "Get regname for pc,sp,bp,a0-3,zf,cf,of,sg",
"dro", "", "Show previous (old) values of registers",
"drp", " [?] <file>", "Load register metadata file",
"drp", "[?] <file>", "Load register metadata file",
"drp", "", "Display current register profile",
"drpi", "", "Display current internal representation of the register profile",
"drps", "", "Fake register profile size",
"drr", "", "Show registers references (telescoping)",
"drs", " [?]", "Stack register states",
"drt", " [?]", "Show all register types",
"drs", "[?]", "Stack register states",
"drt", "[?]", "Show all register types",
"drt", " flg", "Show flag registers",
"drt", " all", "Show all registers",
"drt", " 16", "Show 16 bit registers",
"drt", " 32", "Show 32 bit registers",
"drt", " 80", "Show 80 bit registers (long double)",
"drx", " [?]", "Show all debug registers",
"drx", "[?]", "Show all debug registers",
"drx", " idx addr len rwx", "Modify hardware breakpoint",
"drx-", "number", "Clear hardware breakpoint",
"drf","","show fpu registers (80 bit long double)",
@ -3274,7 +3274,7 @@ static int cmd_debug_step (RCore *core, const char *input) {
"dso", " <num>", "Step over <num> instructions",
"dsp", "", "Step into program (skip libs)",
"dss", " <num>", "Skip <num> step instructions",
"dsu", " [?]<address>", "Step until address",
"dsu", "[?]<address>", "Step until address",
"dsui", " <instr>", "Step until an instruction that matches `instr`",
"dsue", " <esil>", "Step until esil expression matches",
"dsuf", " <flag>", "Step until pc == flag matching name",
@ -3507,7 +3507,7 @@ static int cmd_debug(void *data, const char *input) {
"Usage: dt", "", "Trace commands",
"dt", "", "List all traces ",
"dtd", "", "List all traced disassembled",
"dtc [?][addr]|([from] [to] [addr])", "", "Trace call/ret",
"dtc[?][addr]|([from] [to] [addr])", "", "Trace call/ret",
"dtg", "", "Graph call/ret trace",
"dtg*", "", "Graph in agn/age commands. use .dtg*;aggi for visual",
"dtgi", "", "Interactive debug trace",

View File

@ -205,7 +205,7 @@ static int cmd_egg(void *data, const char *input) {
"gw", "", "Compile and write",
"gc", " cmd=/bin/ls", "Set config option for shellcodes and encoders",
"gc", "", "List all config options",
"gl", " [?]", "List plugins (shellcodes, encoders)",
"gl", "[?]", "List plugins (shellcodes, encoders)",
"gs", " name args", "Compile syscall name(args)",
"gi", " [type]", "Compile shellcode. like ragg2 -i (see gl or ragg2 -L)",
"gp", " padding", "Define padding for command",

View File

@ -781,7 +781,7 @@ rep:
"fa"," [name] [alias]","alias a flag to evaluate an expression",
"fb"," [addr]","set base address for new flags",
"fb"," [addr] [flag*]","move flags matching 'flag' to relative addr",
"fc"," [?][name] [color]","set color for given flag",
"fc","[?][name] [color]","set color for given flag",
"fC"," [name] [cmt]","set comment for given flag",
"fd"," addr","return flag+delta",
"fe-","","resets the enumerator counter",
@ -796,12 +796,12 @@ rep:
"fo","","show fortunes",
//" fc [name] [cmt] ; set execution command for a specific flag"
"fr"," [old] [[new]]","rename flag (if no new flag current seek one is used)",
"fR"," [?] [f] [t] [m]","relocate all flags matching f&~m 'f'rom, 't'o, 'm'ask",
"fR","[?] [f] [t] [m]","relocate all flags matching f&~m 'f'rom, 't'o, 'm'ask",
"fs","[?]+-*","manage flagspaces",
"fS","[on]","sort flags by offset or name",
"fV","[*-] [nkey] [offset]","dump/restore visual marks (mK/'K)",
"fx","[d]","show hexdump (or disasm) of flag:flagsize",
"fz"," [?][name]","add named flag zone -name to delete. see fz?[name]",
"fz","[?][name]","add named flag zone -name to delete. see fz?[name]",
NULL};
r_core_cmd_help (core, help_msg);
break;

View File

@ -330,8 +330,8 @@ static int cmd_open(void *data, const char *input) {
"o","","list opened files",
"o=","","list opened files (ascii-art bars)",
"o*","","list opened files in r2 commands",
"oa"," [?] [addr]","Open bin info from the given address",
"ob"," [?] [lbdos] [...]","list open binary files backed by fd",
"oa","[?] [addr]","Open bin info from the given address",
"ob","[?] [lbdos] [...]","list open binary files backed by fd",
"oc"," [file]","open core file, like relaunching r2",
"oi","[-|idx]","alias for o, but using index instead of fd",
"oj","[?] ","list opened files in JSON format",

View File

@ -412,8 +412,8 @@ static int cmd_write(void *data, const char *input) {
"w6","[de] base64/hex","write base64 [d]ecoded or [e]ncoded string",
"wa","[?] push ebp","write opcode, separated by ';' (use '\"' around the command)",
"waf"," file","assemble file and write bytes",
"wao"," [?] op","modify opcode (change conditional of jump. nop, etc)",
"wA"," [?] r 0","alter/modify opcode at current seek (see wA?)",
"wao","[?] op","modify opcode (change conditional of jump. nop, etc)",
"wA","[?] r 0","alter/modify opcode at current seek (see wA?)",
"wb"," 010203","fill current block with cyclic hexpairs",
"wB","[-]0xVALUE","set or unset bits with given value",
"wc","","list all write changes",
@ -424,10 +424,10 @@ static int cmd_write(void *data, const char *input) {
"wh"," r2","whereis/which shell command",
"wm"," f0ff","set binary mask hexpair to be used as cyclic write mask",
"wo","[?] hex","write in block with operation. 'wo?' fmi",
"wp"," [?] -|file","apply radare patch file. See wp? fmi",
"wp","[?] -|file","apply radare patch file. See wp? fmi",
"wr"," 10","write 10 random bytes",
"ws"," pstring","write 1 byte for length and then the string",
"wt[f]"," [?] file [sz]","write to file (from current seek, blocksize or sz bytes)",
"wt[f]","[?] file [sz]","write to file (from current seek, blocksize or sz bytes)",
"wts"," host:port [sz]", "send data to remote host:port via tcp://",
"ww"," foobar","write wide string 'f\\x00o\\x00o\\x00b\\x00a\\x00r\\x00'",
"wx","[?][fs] 9090","write two intel nops (from wxfile or wxseek)",