openterm icon indicating copy to clipboard operation
openterm copied to clipboard

Create a Utility Flag Parser for arguments

Open JayantVarma opened this issue 6 years ago • 1 comments

Currently, each command extension created will create redundant and duplicate code for parsing the flags passed as arguments to the command.

Something on the lines of getOpt with Linux systems (maybe) with both short and long options.

JayantVarma avatar Apr 14 '18 03:04 JayantVarma

getOpts is already available to use via Swift, why not create a generic wrapper around getOpts and/or getOptLong to parse command-line options instead.

JayantVarma avatar Apr 17 '18 11:04 JayantVarma