Skip to content

Commit

Permalink
feat: simplify cli
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadNews committed Jun 23, 2023
1 parent d6966de commit c01c6c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ Options:
[default: imgur]
-b, --bbcode Add bbcode tags.
-t, --thumbnail Add caption thumbnail and bbcode tags.
-n, --notify / -N, --no-notify Send desktop notifications via libnotify.
[default: N]
-n, --notify Send desktop notification via libnotify.
-c, --clipboard / -C, --no-clipboard
Copy result to clipboard. [default: c]
--version Show the version and exit.
Expand Down
8 changes: 1 addition & 7 deletions src/images_upload_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@
@click.option("-h", "--hosting", type=click.Choice(HOSTINGS), default="imgur")
@click.option("-b", "--bbcode", is_flag=True, help="Add bbcode tags.")
@click.option("-t", "--thumbnail", is_flag=True, help="Add caption thumbnail and bbcode tags.")
@click.option(
"-n/-N",
"--notify/--no-notify",
is_flag=True,
default=False,
help="Send desktop notifications via libnotify.",
)
@click.option("-n", "--notify", is_flag=True, help="Send desktop notification via libnotify.")
@click.option(
"-c/-C",
"--clipboard/--no-clipboard",
Expand Down

0 comments on commit c01c6c5

Please sign in to comment.