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

Global options are not implemented (options on top-level command) #62

Open
olegtaranenko opened this issue Jun 11, 2023 · 3 comments
Open

Comments

@olegtaranenko
Copy link

Looking into the code, I noticed the lack of global options, are scoped to all app's (sub)command, like --debug/-cache etc.
To me it is a kind of show-stopper ;-(

@olegtaranenko
Copy link
Author

Patch is created, but honestly this is a quick-n-dirty solution.

@vadimdemedes
Copy link
Owner

Try creating a commands/index.ts to define global options without exporting a command and see if it works.

Going to close the other PR, because as you said yourself, it's a quick-n-dirty solution.

@ulken
Copy link

ulken commented Nov 18, 2023

Try creating a commands/index.ts to define global options without exporting a command and see if it works.

Works if you target the index command, but not if specifying a subcommand, unfortunately.

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

3 participants