tokenize from cli (full circle)
This commit is contained in:
parent
7176181aef
commit
302d60a061
|
@ -60,10 +60,11 @@ function dump(t)
|
||||||
end
|
end
|
||||||
|
|
||||||
function main()
|
function main()
|
||||||
local mockargs =
|
if arg[1] == nil then
|
||||||
[[--name "tls_service_rs" --base-dir ${PWD%/*/*} --log-level "TRACE" -j '{ "MODE": "server", "CERT": "data/server.crt", "KEY": "data/server.key", "CHAIN": "data/root.crt", "ADDR": "127.0.0.1:9999", "HOSTNAME": "localhost" }']]
|
print("need to give an argument (probably a string)")
|
||||||
print(mockargs)
|
return
|
||||||
local split = tokenize_args(mockargs)
|
end
|
||||||
|
local split = tokenize_args(arg[1])
|
||||||
print(dump(split))
|
print(dump(split))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue