Skip to content

Commit

Permalink
adding --version argument
Browse files Browse the repository at this point in the history
  • Loading branch information
chilcote committed Dec 10, 2017
1 parent 0d8011c commit 170a5ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgroot/usr/local/vfuse/bin/vfuse
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,8 @@ def main():
'''Main method'''
parser = argparse.ArgumentParser(
description='Create and monitor VM from source DMG.')
parser.add_argument('--version', action='store_true',
help='show the version number')
parser.add_argument('-i', '--input', help='/path/to/dmg')
parser.add_argument('-o', '--output', help='/path/to/output/dir')
parser.add_argument('-n', '--name', help='Use a custom name')
Expand Down Expand Up @@ -598,6 +600,10 @@ def main():
help='Generate checksum of a DMG')
args = parser.parse_args()

if args.version:
print __version__
exit(0)

if (os.getuid() != 0
and not args.stop
and not args.reset
Expand Down

0 comments on commit 170a5ee

Please sign in to comment.