mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
for commands with many params
This commit is contained in:
parent
964aee329f
commit
0067a9b7fa
1 changed files with 9 additions and 1 deletions
|
@ -4639,11 +4639,13 @@ void arg_print_syntax(FILE *fp, void * *argtable, const char *suffix) {
|
|||
/* print GNU style [OPTION] string */
|
||||
arg_print_gnuswitch(fp, table);
|
||||
|
||||
size_t len = 0;
|
||||
|
||||
/* print remaining options in abbreviated style */
|
||||
for (tabindex = 0;
|
||||
table[tabindex] && !(table[tabindex]->flag & ARG_TERMINATOR);
|
||||
tabindex++) {
|
||||
char syntax[200] = "";
|
||||
char syntax[400] = "";
|
||||
const char *shortopts, *longopts, *datatype;
|
||||
|
||||
/* skip short options without arg values (they were printed by arg_print_gnu_switch) */
|
||||
|
@ -4681,6 +4683,12 @@ void arg_print_syntax(FILE *fp, void * *argtable, const char *suffix) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
len += strlen(syntax);
|
||||
if (len > 60) {
|
||||
fprintf(fp, "\n ");
|
||||
len = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (suffix)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue