Skip to content

Commit

Permalink
api(Arg::last): adds the ability to mark a positional argument as 'la…
Browse files Browse the repository at this point in the history
…st' which means it should be used with `--` syntax and can be accessed early

Marking a positional argument `.last(true)` will allow accessing this argument earlier if the `--` syntax is used (i.e. skipping other positional args)
and also change the usage string to one of the following:

* `$ prog [arg1] [-- <last_arg>]`
* `$ prog [arg1] -- <last_arg>` (if the arg marked `.last(true)` is also marked `.required(true)`)

Closes #888
  • Loading branch information
kbknapp committed Mar 11, 2017
1 parent 989862d commit 6a7aea9
Show file tree
Hide file tree
Showing 6 changed files with 486 additions and 326 deletions.
Loading

0 comments on commit 6a7aea9

Please sign in to comment.