Repository navigation
Replies: 1 comment
|
You can keep your command unchanged if an explicit python myprogram.py run -- target --var1 1 --var2 10With your ["target", "--var1", "1", "--var2", "10"]
I checked your application on Cleo 2.1.0: the original invocation fails on This requires callers to include the separator; it does not implement Poetry-style forwarding without it. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I tried to achieve this by setting
multiple=True, like this script for instance:When running
python myprogram.py run target --var1 1 --var2 10, cleo would throw an error about--var1option does not exist. Upon futher looking,poetryseems to achieve this by subclassingApplication, and redefiningio. I am just wondering if there is a painless way of doing this natively incleo. I am happy to contribute if this feature is not yet available.Edit:
I know that this can be achieved by using raw
sys.argv, but I want to usecleofeatures likehelpandlist.All reactions