From 5dbfb627fce27209fb113895ea8ec675a45919b6 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 20 Feb 2018 20:18:37 +0100 Subject: [PATCH] chg: 'brutesim' - script prints author and checks for being called with no arguments. --- client/scripts/brutesim.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/scripts/brutesim.lua b/client/scripts/brutesim.lua index c438333ef..50e3b5888 100644 --- a/client/scripts/brutesim.lua +++ b/client/scripts/brutesim.lua @@ -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