]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdparser.c
ADD: started with adding a "LS" command that lists the commands without the help...
[proxmark3-svn] / client / cmdparser.c
index 6910e86a535b7fd8154a9e1a94acfa4cc5583650..ae67466aab557bff38020b57712f0b836d96868a 100644 (file)
@@ -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)
Impressum, Datenschutz