mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-29 04:50:21 +00:00
Add help text to usage
This commit is contained in:
parent
5addc7519d
commit
1beed070fd
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user