Skip to content

Commit be3a884

Browse files
authored
CM-25168 - Add short alias for the output option (#140)
1 parent 32616a8 commit be3a884

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.idea
33
*.iml
44
.env
5+
.ruff_cache/
56

67
# Byte-compiled / optimized / DLL files
78
__pycache__/

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@ repos:
213213

214214
The following are the options and commands available with the Cycode CLI application:
215215

216-
| Option | Description |
217-
|--------------------------------|-------------------------------------------------------------------|
218-
| `--output [text\|json\|table]` | Specify the output (`text`/`json`/`table`). The default is `text` |
219-
| `-v`, `--verbose` | Show detailed logs |
220-
| `--version` | Show the version and exit. |
221-
| `--help` | Show options for given command. |
216+
| Option | Description |
217+
|--------------------------------------|-------------------------------------------------------------------|
218+
| `-o`, `--output [text\|json\|table]` | Specify the output (`text`/`json`/`table`). The default is `text` |
219+
| `-v`, `--verbose` | Show detailed logs |
220+
| `--version` | Show the version and exit. |
221+
| `--help` | Show options for given command. |
222222

223223
| Command | Description |
224224
|-------------------------------------|-------------|

cycode/cli/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
)
7777
@click.option(
7878
'--output',
79+
'-o',
7980
default=None,
8081
help="""
8182
\b
@@ -198,6 +199,7 @@ def finalize(context: click.Context, *_, **__) -> None:
198199
)
199200
@click.option(
200201
'--output',
202+
'-o',
201203
default='text',
202204
help='Specify the output (text/json/table), the default is text',
203205
type=click.Choice(['text', 'json', 'table']),

0 commit comments

Comments
 (0)