Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 11, 2024
1 parent 97049c2 commit 56bba41
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/blurb/blurb.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,9 +744,7 @@ def get_subcommand(subcommand):

@subcommand
def version():
"""
Print blurb version.
"""
"""Print blurb version."""
print("blurb version", __version__)

Check warning on line 748 in src/blurb/blurb.py

View check run for this annotation

Codecov / codecov/patch

src/blurb/blurb.py#L748

Added line #L748 was not covered by tests


Expand Down Expand Up @@ -825,10 +823,10 @@ def help(subcommand=None):
print(doc)
sys.exit(0)

# Make "blurb --help" work.
# Make "blurb --help/--version/-V" work.
subcommands["--help"] = help
subcommands["--version"] = version
subcommands["-v"] = version
subcommands["-V"] = version


@subcommand
Expand Down

0 comments on commit 56bba41

Please sign in to comment.