ex_cli v0.1.6 ExCLI View Source
Module containing functions to interact with modules using ExCLI.DSL
Link to this section Summary
Link to this section Functions
Parse the arguments with a module using ExCLI.DSL
Example
case ExCLI.parse(MyApp.CLI) do
{:ok, command, context} ->
do_something(command, context)
{:error, reason, details} ->
handle_error(reason, details)
end
Parse and run the arguments with a module using ExCLI.DSL
Example
ExCLI.run(MyApp.CLI)
ExCLI.run(MyApp.CLI, ["some", "args"])
Displays the usage for the given module