Kitto v0.9.1 Kitto.Generator View Source
Convenience when building generators for Kitto
Link to this section Summary
Functions
Parses arguments passed from command line
Link to this section Functions
Parses arguments passed from command line.
Examples:
iex> Kitto.Generator.parse_options(["my_widget"])
{[], ["my_widget"], []}
iex> Kitto.Generator.parse_options(["-p", "dashboard_path", "my_dashboard"])
{[path: "dashboard_path"], ["my_dashboard"], []}
iex> Kitto.Generator.parse_options(["--path", "dash", "my_dashboard"])
{[path: "dash"], ["my_dashboard"], []}