louisdh / openterm

OpenTerm, a sandboxed command line interface for iOS
Other
1.63k stars 248 forks source link

Create a Utility Flag Parser for arguments #117

Open JayantVarma opened 6 years ago

JayantVarma commented 6 years ago

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 commented 6 years ago

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.