Skip to main content

click-aliases

build license coverage

Add (multiple) aliases to a click_ group or command.

In your click app:

import click
from click_aliases import ClickAliasedGroup

@click.group(cls=ClickAliasedGroup)
def cli():
    pass

@cli.command(aliases=['bar', 'baz', 'qux'])
def foo():
    """Run a command."""
    click.echo('foo')

Will result in:

Usage: cli [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  foo (bar,baz,qux)  Run a command.

Metadata

Release files for click-aliases 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for click-aliases 1.0.7
File Size Uploaded
click_aliases-1.0.7.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for click-aliases 1.0.7
File Interpreter ABI Platform
click_aliases-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / click_aliases-1.0.7.tar.gz

Download URL click_aliases-1.0.7.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
507d6a6cf9001bf8838fe7f58a37651a25cbc5cc25421c5aeab6727a9397f7b5
BLAKE2b-256 checksum
How to use checksums
0262a67da6b561fad10792635cf504080f3d98b655683c4801570b22f95f3476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / click_aliases-1.0.7-py3-none-any.whl

Download URL click_aliases-1.0.7-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3dc828dbc76de4b6a7262a02049ad00e0107648f3a058df728d966e3fecd464
BLAKE2b-256 checksum
How to use checksums
872783b5403ab6cfa9ee78e0251308e614df8536679348771575fcdb0e00db4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page