This is not another command option parser. It's the opposite. A command option builder for the use with exec. It will use shell-quote by substack to escape the options.
var Commandliner = ;var exec = exec;var say = 'say' interactive: true 'Hello, there!';sayoptionsvoice = 'Zarvox';// Evaluates to: say --interactive -v Zarvox 'Hello, there!'; // implicit call to toString()
You can also just build the String directly like this.
var command = Commandliner;// Evaluates to: git commit -m 'Add this new feature everyone loves'var command = Commandliner;// Evaluates to: docker run something .
Attributes of new Commandliner()
Be aware of this since you could be thinking that "command" is the first argument, but I decided to call it program.