This commit is contained in:
Nathan Mattes 2022-01-03 17:41:35 +01:00
parent 8f002646a2
commit 3f17b025a9
1 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,13 @@ defmodule Issues.CLI do
parse_args(argv)
end
@doc """
`argv` can be -h or --help, which returns :help.
Otherwise it is a github user name, project name, and (optionally)
the number of entries to format.
Return a tuple of `{ user, project, count }`, or `:help` if help was given
"""
def parse_args(argv) do
parse =
OptionParser.parse(argv,