X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/035303ac5f3e5e38cfa79a3a4c0d0bf76e70bd6b..ae7aa73dd529b84ad75c7a3c75461be1d7c18454:/client/cmdparser.c diff --git a/client/cmdparser.c b/client/cmdparser.c index 4f6e2463..48d044d5 100644 --- a/client/cmdparser.c +++ b/client/cmdparser.c @@ -12,6 +12,7 @@ #include #include "ui.h" #include "cmdparser.h" +#include "proxmark3.h" void CmdsHelp(const command_t Commands[]) { @@ -20,8 +21,10 @@ void CmdsHelp(const command_t Commands[]) int i = 0; while (Commands[i].Name) { - if (!offline || Commands[i].Offline) + if (offline == 0 || Commands[i].Offline) PrintAndLog("%-16s %s", Commands[i].Name, Commands[i].Help); + if (offline == 2 && !Commands[i].Offline) + PrintAndLog("%-14s @ %s", Commands[i].Name, Commands[i].Help); ++i; } } @@ -55,7 +58,7 @@ void CmdsParse(const command_t Commands[], const char *Cmd) ++len; Commands[i].Parse(Cmd + len); } else { - // show help (always first in array) for selected hierarchy or if command not recognised + // show help for selected hierarchy or if command not recognised CmdsHelp(Commands); } }