Replies: 2 comments 1 reply
-
I'm not absolutely clear on what you're trying to achieve. Are you looking to invoke an existing app that uses click for command line processing or to modify/write an app that uses click to process the command line? You mention stopping parsing. Click option processing supports a way to mess with processing but I'm not sure it is relevant to your problem: https://click.palletsprojects.com/en/8.1.x/options/#callbacks-and-eager-options |
Beta Was this translation helpful? Give feedback.
0 replies
-
Add an argument with @cli.command()
@click.argument("parts", nargs=-1)
def run(parts):
...
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature Description
I am working on a tool to wrap some existed command line tools to make them easier to use (like auto install, inject argument automatically, etc). And I hope that I can have a way to tell
click
to stop parsing after encount some specific command.Example
Here are some real world examples like
poetry run python3 ./my-scripts.py
orconda run -n my-env python3 ./my-scripts.py
Beta Was this translation helpful? Give feedback.
All reactions