-
Notifications
You must be signed in to change notification settings - Fork 7
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
z init
doesn't work
#70
Comments
Unfortunately it seems like there's no way to fix this with the cli structure as it is. The combination of features interacting are the following:
I can't find any way to make the above work unfortunately. To have both If it's a trailing argument, clap can't distinguish it from a subcommand, so I need a way to do either of the following:
I'll do one more look through the docs to see if 1. is possible. After laying it out like this in text vs bumbling about with trial and error, it seems worth giving it another look... If the above all still seems hopeless, I think |
At this point I think the less hacky choice would be to rename If you're (reasonably) concerned about backwards compatibility, I think adding |
This fixes #70. Prior to this change, there was a mix of subcommands and flags that were all mutually-exclusive behaviors. This ended up being a bit awkward and made some configurations ambiguous. This moves to a much nicer structure. There are global flags (right now just debug), and then there are subcommands for each distinct mode of operation. For ease of migration, the previous logic still remains, but it can be safely deleted after another release or so to allow migration.
This issue is suspiciously like #60, but instead of things that autosuggest to something, it's jumps that exactly match something.
This can also be seen in typing
pazi --dir init
which should look for directories containinginit
, but instead prints out help output.The text was updated successfully, but these errors were encountered: