mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-13 16:18:33 +00:00
Fix #2913
This commit is contained in:
parent
29615355b6
commit
49853dbb92
@ -335,9 +335,16 @@ static int cmd_help(void *data, const char *input) {
|
||||
}
|
||||
return R_TRUE;
|
||||
case 'V':
|
||||
if (!strcmp (R2_VERSION, GIT_TAP))
|
||||
r_cons_printf ("%s %d\n", R2_VERSION, R2_VERSION_COMMIT);
|
||||
else r_cons_printf ("%s aka %s commit %d\n", R2_VERSION, GIT_TAP, R2_VERSION_COMMIT);
|
||||
if (!input[1]){
|
||||
if (!strcmp (R2_VERSION, GIT_TAP))
|
||||
r_cons_printf ("%s %d\n", R2_VERSION, R2_VERSION_COMMIT);
|
||||
|
||||
else r_cons_printf ("%s aka %s commit %d\n", R2_VERSION, GIT_TAP, R2_VERSION_COMMIT);
|
||||
}
|
||||
if (input[1] == 'j' && !input[2]){
|
||||
r_cons_printf ("{\"system\":\"%s-%s-%s\"", R_SYS_OS, R_SYS_ENDIAN, R_SYS_ARCH);
|
||||
r_cons_printf (",\"version\":\"%s\"}\n", R2_VERSION);
|
||||
}
|
||||
break;
|
||||
case 'l':
|
||||
for (input++; input[0]==' '; input++);
|
||||
|
Loading…
Reference in New Issue
Block a user