mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-05 07:36:14 +08:00
syntax suger
This commit is contained in:
parent
fbc2bace4a
commit
719000b7f4
1 changed files with 12 additions and 15 deletions
|
@ -15,13 +15,10 @@
|
||||||
#include "cmdparser.h"
|
#include "cmdparser.h"
|
||||||
#include "proxmark3.h"
|
#include "proxmark3.h"
|
||||||
|
|
||||||
void CmdsHelp(const command_t Commands[])
|
void CmdsHelp(const command_t Commands[]) {
|
||||||
{
|
if (Commands[0].Name == NULL) return;
|
||||||
if (Commands[0].Name == NULL)
|
|
||||||
return;
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (Commands[i].Name)
|
while (Commands[i].Name) {
|
||||||
{
|
|
||||||
if (!offline || Commands[i].Offline)
|
if (!offline || Commands[i].Offline)
|
||||||
PrintAndLog("%-16s %s", Commands[i].Name, Commands[i].Help);
|
PrintAndLog("%-16s %s", Commands[i].Name, Commands[i].Help);
|
||||||
++i;
|
++i;
|
||||||
|
|
Loading…
Reference in a new issue