You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-10Lines changed: 17 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,28 @@
12
12
13
13
A powerful extension for [Click](https://click.palletsprojects.com/) that adds **command and group aliasing** support with **automatic async function handling** and **advanced parameter validation**.
14
14
15
+
You can find the project on [PyPi](https://pypi.org/project/click-with-aliasing/).
16
+
15
17
## Features
16
18
17
19
-**Command Aliases**: Create multiple names for your commands
18
20
-**Group Aliases**: Add aliases to command groups
21
+
-**Help Alias (-h)**: Automatic `-h` shorthand for `--help` with conflict detection
19
22
-**Enhanced Options & Arguments**: Mutual exclusivity, requirements, and group constraints
-**Automatic Async Support**: Seamlessly handle async functions without extra configuration
22
25
-**Drop-in Replacement**: Works exactly like standard Click decorators
23
26
-**Type Safe**: Full type hints support with proper IDE integration
24
27
-**Help Integration**: Aliases automatically appear in help text
25
28
29
+
## Installation
30
+
31
+
```bash
32
+
pip install click-with-aliasing
33
+
```
34
+
35
+
**Requirements:** Python 3.10 or newer
36
+
26
37
## Documentation
27
38
28
39
-**[Command](docs/COMMAND.md)** - Command decorator with aliasing support
@@ -31,13 +42,7 @@ A powerful extension for [Click](https://click.palletsprojects.com/) that adds *
31
42
-**[Argument](docs/ARGUMENT.md)** - Enhanced arguments with validation constraints
32
43
-**[Rule](docs/RULE.md)** - Group-level validation rules for complex parameter logic
33
44
34
-
## Installation
35
-
36
-
```bash
37
-
pip install click-with-aliasing
38
-
```
39
-
40
-
**Requirements:** Python 3.10 or newer
45
+
> **Note:** Both `-h` and `--help` flags are supported by default. See the [Command](docs/COMMAND.md) and [Group](docs/GROUP.md) documentation for details on how `-h` is intelligently handled when commands use it for other purposes.
The `-h` flag is automatically added unless a command uses it for another purpose (like `--host`), ensuring consistent help access while avoiding conflicts.
285
+
279
286
## Contributing
280
287
281
288
Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md) for details on our development process, coding standards, and how to submit pull requests.
0 commit comments