Include version in --help output

This commit is contained in:
Sybren A. Stüvel 2018-07-11 12:44:29 +02:00
parent 439f727815
commit 43e8a7e370

View File

@ -28,7 +28,8 @@ from . import common, pack, list_deps
def cli_main(): def cli_main():
parser = argparse.ArgumentParser(description='BAT: Blender Asset Tracer') from blender_asset_tracer import __version__
parser = argparse.ArgumentParser(description='BAT: Blender Asset Tracer v%s' % __version__)
common.add_flag(parser, 'profile', help='Run the profiler, write to bam.prof') common.add_flag(parser, 'profile', help='Run the profiler, write to bam.prof')
# func is set by subparsers to indicate which function to run. # func is set by subparsers to indicate which function to run.