who has two thumbs and is a genius? not this guy!

This commit is contained in:
2023-03-19 20:03:06 +02:00
parent 99dc09de24
commit 71fbaaf9cb

View File

@@ -56,7 +56,7 @@ parser.add_argument('-v', '--values', help='Change credential values', action='s
parser.add_argument('-P', '--provider', help='Cloud provider', choices=['gce', 'azure', 'aws'])
parser.add_argument('-a', '--action', help='Action to perform on a single or all instances', choices=['delete', 'start', 'stop', 'reboot', 'deleteall', 'startall', 'stopall', 'rebootall'])
parser.add_argument('-c', '--create', help='Create an instance', action='store_true')
parser.add_argument('-f', '--file', help='File to run on an instance', type=str, default=None, required=False)
parser.add_argument('-dep', '--deploy', help='Docker images to deploy', type=str, nargs='*', default=None, required=False)
parser.add_argument('-I', '--listimages', help='List images', action='store_true')
parser.add_argument('-S', '--listsizes', help='List sizes', action='store_true')
parser.add_argument('-G', '--listlocations', help='List locations', action='store_true')
@@ -1333,3 +1333,5 @@ if args.image or args.size or args.name or args.region or args.yes and not args.
exit(0)
if args.print and not args.list or args.listimages or args.listsizes or args.listlocations:
print("The print flag only goes together with the list, list images, list sizes or list locations")
if args.deploy:
print(args.deploy)