Skip to content

Commit

Permalink
Simplify implementation of --version option
Browse files Browse the repository at this point in the history
  • Loading branch information
superatomic committed Mar 14, 2023
1 parent 3bbdcb6 commit 442cc7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tldr_man/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
from typing import Optional

import click
from click import secho
from click_help_colors import HelpColorsCommand

from tldr_man import languages, pages
Expand Down Expand Up @@ -123,7 +122,7 @@ def subcommand_manpath(ctx, _param, _value):

@click_standalone_subcommand
def subcommand_version(_ctx, _param, _value):
secho(f'{TLDR_COMMAND_NAME} {__version__}')
print(TLDR_COMMAND_NAME, __version__)


@click.command(cls=HelpColorsCommand, help_headers_color='yellow', help_options_color='green')
Expand Down

0 comments on commit 442cc7f

Please sign in to comment.