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

Support for nested subcommands #57

Open
Krever opened this issue Apr 7, 2023 · 1 comment
Open

Support for nested subcommands #57

Krever opened this issue Apr 7, 2023 · 1 comment

Comments

@Krever
Copy link

Krever commented Apr 7, 2023

Is it possible to somehow nest subcommands with mainargs?
I'd like to achieve something like this:

program foo bar --some --arguments
program foo baz --other --args
@lihaoyi
Copy link
Member

lihaoyi commented Aug 8, 2023

There isn't a way right now. Could probably be implemented, but not sure what the API would look like (maybe @main on objects that wrap the @main defs?)

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

2 participants