File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 99from argparse import ArgumentParser
1010
1111from barcode .writer import ImageWriter , SVGWriter
12+ from barcode .version import version
1213
1314# Optional PyQt4 GUI
1415try :
@@ -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.' )
You can’t perform that action at this time.
0 commit comments