Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to emulate the [<tree-ish>] [--] [<paths>...] behavior of git-checkout #4

Open
xenomachina opened this issue Jan 9, 2017 · 0 comments

Comments

@xenomachina
Copy link
Owner

xenomachina commented Jan 9, 2017

Part of git-checkout's usage looks like this:

git checkout [-p|--patch] [<tree-ish>] [--] [<paths>...]

The <tree-ish> and <paths> are both positional arguments. One can disambiguate between a
<tree-ish> and a <paths> argument by using --.

It might be useful to be able to emulate this behavior.

Implementing this might be as simple as adding a flag to ArgParser.argumentList (and argument) that disables parsing of the positional argument once -- appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant