diff --git a/c4mate b/c4mate index 86d521c..3bcb0d1 100755 --- a/c4mate +++ b/c4mate @@ -305,6 +305,14 @@ function MatePad:give(amount, recipient, reason) }) end + +-- Parse -u flag (which may be given multiple times). +while arg[1] == "-u" do + table.remove(arg, 1) + USER = arg[1] + table.remove(arg, 1) +end + -- Process help and username options. if arg[1] == "-h" or arg[1] == "--help" then @@ -326,13 +334,6 @@ Give credits: os.exit(0) end --- Parse -u flag (which may be given multiple times). -while arg[1] == "-u" do - table.remove(arg, 1) - USER = arg[1] - table.remove(arg, 1) -end - -- Set up username. if USER == nil then USER = os.getenv("USER")