{"repo":"click-contrib/click-option-group","free":true,"listed":false,"github":"https://github.com/click-contrib/click-option-group","clone":"git clone https://github.com/click-contrib/click-option-group.git","description":"Option groups missing in Click","language":"Python","stars":121,"topics":["click","click-contrib","python","python-click","cli","python-cli"],"license":"BSD-3-Clause","category":"cli-tools","readme_excerpt":"click-option-group click-option-group is a Click-extension package that adds option groups missing in Click. Aim and Motivation Click is a package for creating powerful and beautiful command line interfaces (CLI) in Python, but it has no the functionality for creating option groups. Option groups are convenient mechanism for logical structuring CLI, also it allows you to set the specific behavior and set the relationship among grouped options (mutually exclusive options for example). Moreover, argparse stdlib package contains this functionality out of the box. At the same time, many Click users need this functionality. You can read interesting discussions about it in the following issues: issue 257 issue 373 issue 509 issue 1137 The aim of this package is to provide group options with extensible functionality using canonical and clean API (Click-like API as far as possible). Quickstart Installing Install and update using pip: A Simple Example Here is a simple example how to use option groups in your Click-based CLI. Just use optgroup for declaring option groups by decorating your command function in Click-like API style. Documentation https://click-option-group.readthedocs.io","default_branch":null,"files":null,"tree":[],"storefront":"/r/click-contrib","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/click-contrib/click-option-group/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}