mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
commit
46b2de998d
1 changed files with 22 additions and 13 deletions
|
@ -6,14 +6,15 @@
|
||||||
|
|
||||||
Note: the parser will format and color and layout as needed.
|
Note: the parser will format and color and layout as needed.
|
||||||
|
|
||||||
## common options
|
## design comments
|
||||||
where possiable all options should be lowercase.
|
* where possiable all options should be lowercase.
|
||||||
extended options preceeded with -- should be short
|
* extended options preceeded with -- should be short
|
||||||
options provided directly (without an option identifier) should be avoided.
|
* options provided directly (without an option identifier) should be avoided.
|
||||||
-vv for extra verbos should be avoided; use of debug level is prefered.
|
* -vv for extra verbos should be avoided; use of debug level is prefered.
|
||||||
whith --options the equle is not needed (will work with and without) so dont use '='
|
* with --options the equal is not needed (will work with and without) so dont use '='
|
||||||
e.g. cmd --cn 12345
|
e.g. cmd --cn 12345
|
||||||
|
|
||||||
|
## common options
|
||||||
-h --help : help
|
-h --help : help
|
||||||
--cn : card number
|
--cn : card number
|
||||||
--fn : facility number
|
--fn : facility number
|
||||||
|
@ -61,13 +62,21 @@ e.g. lf indala clone -r a0000000a0002021 -> this uses .....
|
||||||
};
|
};
|
||||||
|
|
||||||
**Notes:**
|
**Notes:**
|
||||||
booleen : arg_lit0 ("\<short option\>", "\<long option\>", \["\<format\>",\] \<"description"\>);
|
booleen : arg_lit0 ("\<short option\>", "\<long option\>", \["\<format\>",\] \<"description"\>)
|
||||||
optional integer : arg_int0 ("\<short option\>", "\<long option\>", \["\<format\>",\] \<"description"\>);
|
|
||||||
required integer : arg_int1 ("\<short option\>", "\<long option\>", \["\<format\>",\] \<"description"\>);
|
|
||||||
optional string : arg_strx0 ("\<short option\>", "\<long option\>", \["\<format\>",\] \<"description"\>);
|
|
||||||
required string : arg_strx1 ("\<short option\>", "\<long option\>", \["\<format\>",\] \<"description"\>);
|
|
||||||
|
|
||||||
** if an option does not have a short or long option, use NULL in its place. **
|
**integer**
|
||||||
|
optional integer : arg_int0 ("\<short option\>", "\<long option\>", \["\<format\>",\] \<"description"\>)\
|
||||||
|
required integer : arg_int1 ("\<short option\>", "\<long option\>", \["\<format\>",\] \<"description"\>)
|
||||||
|
|
||||||
|
**Strings 0 or 1**
|
||||||
|
optional string : arg_str0("\<short option\>", "\<long option\>", \["\<format\>",\] \<"description"\>)\
|
||||||
|
required string : arg_str1("\<short option\>", "\<long option\>", \["\<format\>",\] \<"description"\>)
|
||||||
|
|
||||||
|
**Strings x to 250**
|
||||||
|
optional string : arg_strx0 ("\<short option\>", "\<long option\>", \["\<format\>",\] \<"description"\>)\
|
||||||
|
required string : arg_strx1 ("\<short option\>", "\<long option\>", \["\<format\>",\] \<"description"\>)
|
||||||
|
|
||||||
|
**if an option does not have a short or long option, use NULL in its place**
|
||||||
|
|
||||||
### show the menu
|
### show the menu
|
||||||
CLIExecWithReturn(\<context\>, \<command line to parse\>, \<arg/opt table\>, \<return on error\>);
|
CLIExecWithReturn(\<context\>, \<command line to parse\>, \<arg/opt table\>, \<return on error\>);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue