2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Add help text to usage

This commit is contained in:
Jarrod Johnson 2020-05-12 09:53:46 -04:00
parent 5addc7519d
commit 1beed070fd

View File

@ -8,10 +8,10 @@ import time
def main(args):
ap = argparse.ArgumentParser(description='Manage OS deployment resources')
sp = ap.add_subparsers(dest='command')
osip = sp.add_parser('osimport')
osip = sp.add_parser('import', help='Import an OS image from an ISO image')
osip.add_argument('imagefile', help='File to use for source of importing')
cmdset = ap.parse_args()
if cmdset.command == 'osimport':
if cmdset.command == 'import':
osimport(cmdset.imagefile)
def osimport(imagefile):