mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
chg: 'brutesim' - script prints author and checks for being called with no arguments.
This commit is contained in:
parent
5b6a5206df
commit
5dbfb627fc
1 changed files with 3 additions and 0 deletions
|
@ -84,6 +84,7 @@ end
|
|||
-- Usage help
|
||||
local function help()
|
||||
print(copyright)
|
||||
print(author)
|
||||
print(version)
|
||||
print(desc)
|
||||
print("Example usage")
|
||||
|
@ -144,6 +145,8 @@ local function main(args)
|
|||
print( string.rep('--',20) )
|
||||
print( string.rep('--',20) )
|
||||
print()
|
||||
|
||||
if #args == 0 then return help() end
|
||||
|
||||
for o, a in getopt.getopt(args, 'r:f:b:c:t:d:h') do -- Populate command like arguments
|
||||
if o == 'r' then rfidtag = a end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue