Add version to configure.py.

main
Alex Huszagh 2022-04-27 13:55:48 -05:00
parent f307bed419
commit 0221df47e3
1 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,8 @@
Configure icons, stylesheets, and resource files.
'''
__version__ = '0.1.0'
import argparse
import glob
import json
@ -25,6 +27,12 @@ def parse_args(argv=None):
'''Parse the command-line options.'''
parser = argparse.ArgumentParser(description='Styles to configure for a Qt application.')
parser.add_argument(
'-v',
'--version',
action='version',
version=f'%(prog)s {__version__}'
)
parser.add_argument(
'--styles',
help='comma-separate list of styles to configure. pass `all` to build all themes',