Skip to content

Commit f14c512

Browse files
author
Hugo Osvaldo Barrera
committed
Fix broken references in the CLI code
Fixes #6
1 parent 51a2c58 commit f14c512

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

barcode/pybarcode.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from argparse import ArgumentParser
1010

1111
from barcode.writer import ImageWriter, SVGWriter
12+
from barcode.version import version
1213

1314
# Optional PyQt4 GUI
1415
try:
@@ -79,10 +80,10 @@ def main():
7980
else:
8081
msg.append('PyQt found. Use gui action to get a simple GUI.')
8182
parser = ArgumentParser(
82-
description=barcode.__description__, epilog=' '.join(msg)
83+
description='Create standard barcodes via cli.', epilog=' '.join(msg)
8384
)
8485
parser.add_argument('-v', '--version', action='version',
85-
version='%(prog)s ' + barcode.__release__)
86+
version='%(prog)s ' + version)
8687
subparsers = parser.add_subparsers(title='Actions')
8788
create_parser = subparsers.add_parser('create', help='Create a barcode '
8889
'with the given options.')

0 commit comments

Comments
 (0)