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

subcommand support #2

Open
tolidano opened this issue Jun 2, 2019 · 1 comment
Open

subcommand support #2

tolidano opened this issue Jun 2, 2019 · 1 comment

Comments

@tolidano
Copy link
Owner

tolidano commented Jun 2, 2019

the ability to delegate top level commands easily to entirely separate command instances is valuable.

i.e. top-level maps to a command and evaluates 0 or more sub-levels. all remaining tokens to be parsed for that command are what's left.

it should be easy, given that tokens are taken as a parameter and $_SERVER['argv'] is only taken otherwise, to create commands which take the "unparsed" part of parse (but parse must know about these subcommands up front, to avoid creating arbitrary unnamed anonymous options).

notes: nategood/commando#20

@tolidano
Copy link
Owner Author

tolidano commented Jun 2, 2019

can also leverage this: https://github.com/nategood/commando/pull/80/files

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

No branches or pull requests

1 participant