X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/3ad48540d4d77f50cc62d16acb78f17019ef431d..f62b5e1204517129be388dbdbf8041337dea53f0:/client/cmdparser.c?ds=sidebyside diff --git a/client/cmdparser.c b/client/cmdparser.c index 6910e86a..ae67466a 100644 --- a/client/cmdparser.c +++ b/client/cmdparser.c @@ -28,6 +28,18 @@ void CmdsHelp(const command_t Commands[]) } } +void CmdsLS(const command_t Commands[]) +{ + if (Commands[0].Name == NULL) return; + int i = 0; + while (Commands[i].Name) + { + if (!offline || Commands[i].Offline) + PrintAndLog("%-16s", Commands[i].Name); + ++i; + } +} + void CmdsParse(const command_t Commands[], const char *Cmd) { if(strcmp( Cmd, "XX_internal_command_dump_XX") == 0)