Open Etiene opened 8 years ago
Should adding more dependencies be avoided or can this https://github.com/amireh/lua_cliargs be used?
https://github.com/amireh/lua_cliargs looks great. I guess the sailor CLI will grow over time so a library like this could be useful. I don't see any problem with dependencies to mature projects, are you?
Yes, I agree using cliargs is a good call
Had a quick look at this but I found a big block, the lua_cliargs version for the latest version busted don't support commands.
UPDATE: Opened a Issue there: Olivine-Labs/busted#498
Shameless plug, there is another CLI parsing library that supports commands. Although waiting for release of busted-2.0.rc12 is probably better if you don't want to indirectly depend on two different libraries that do the same thing.
Nice! Will try it. :) Em 28/02/2016 10:03 AM, "Peter Melnichenko" notifications@github.com escreveu:
Shameless plug, there is another CLI parsing library that supports commands https://github.com/mpeterv/argparse. Although waiting for release of busted-2.0.rc12 is better if you don't to indirectly depend on two different libraries that do same thing.
— Reply to this email directly or view it on GitHub https://github.com/sailorproject/sailor/issues/69#issuecomment-189866110 .
Started a refactor using argparse as suggested by @mpeterv, check the branch https://github.com/sailorproject/sailor/compare/master...xspager:cli_refactor?expand=1
Still need verify if the behavior is similar to the old one and get the messages and more close to what it is right now.
@Etiene, can you change the points of this issue and the title to something more generic? :)
Feedback welcomed
start
orserver
command that will run `start-server.lua"