Seely.Parser (Seely v0.1.0) View Source

Helper functions to parse commands.

Link to this section Summary

Functions

Parse the given command and options with the standard OptionParser.

Link to this section Functions

Link to this function

parse(command, opts \\ [])

View Source

Parse the given command and options with the standard OptionParser.

It returns a Tuple of

{ parsed_options, parsed_params, invalid_options }

Example

{[upper: true, trim: true], ["echo", " string "], [{:invalid, nil}]}