Skip to content

Commit 56bba41

Browse files
hugovkezio-melottiAA-Turner
authored
Apply suggestions from code review
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 97049c2 commit 56bba41

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/blurb/blurb.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,7 @@ def get_subcommand(subcommand):
744744

745745
@subcommand
746746
def version():
747-
"""
748-
Print blurb version.
749-
"""
747+
"""Print blurb version."""
750748
print("blurb version", __version__)
751749

752750

@@ -825,10 +823,10 @@ def help(subcommand=None):
825823
print(doc)
826824
sys.exit(0)
827825

828-
# Make "blurb --help" work.
826+
# Make "blurb --help/--version/-V" work.
829827
subcommands["--help"] = help
830828
subcommands["--version"] = version
831-
subcommands["-v"] = version
829+
subcommands["-V"] = version
832830

833831

834832
@subcommand

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy