ich eine cli Spezifikation mit docopt geschaffen, die aus irgendeinem Grund groß, jedoch arbeitet ich neu schreiben müssen, um esmutually_exclusive_group mit optional und Positions Argument
Usage:
update_store_products <store_name>...
update_store_products --all
Options:
-a --all Updates all stores configured in config
Wie argparse das zu tun?
Was ist wichtig, ich will nicht, so etwas haben:
update_store_products [--all] <store_name>...
ich denke, es eher so etwas wie dieses wäre:
update_store_products (--all | <store_name>...)
Ich versuchte add_mutually_exclusive_group zu verwenden, aber ich Fehler:
ValueError: mutually exclusive arguments must be optional