Created
March 15, 2018 08:40
-
-
Save ndvo2710/a798361c0994b95651e3babce5dcd963 to your computer and use it in GitHub Desktop.
py:: argparse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parser = argparse.ArgumentParser() | |
parser.add_argument('build', | |
type=str, | |
help='GET WORKING INPUT NUMBER') | |
parser.add_argument('-d', '--download', | |
action='store_true', | |
help='DOWNLOAD BUILD') | |
parser.add_argument('-f', '--flash', | |
action='store_true', | |
help='FLASH BUILD') | |
parser.add_argument('-n', '--NUX', | |
action='store_true', | |
help='Go through NUX') | |
parser.add_argument('-i', '--install', | |
action='store_true', | |
help='NSTALLING APK FILES') | |
parser.add_argument('speed', | |
type=int, | |
help='5 Minutes Test or 10 Minutes Test') | |
args = parser.parse_args() | |
BUILD_NUMBER = args.build | |
if args.download: | |
continue | |
if args.flash: | |
coninue | |
if args.NUX: | |
continue | |
if args.install: | |
continue | |
if args.speed == 5 or args.speed == 10: | |
speed = args.speed | |
else: | |
print 'Wrong Test Time. must be 5 or 10' | |
if speed == 5: | |
speed = ' 10 3 30' | |
if speed == 10: | |
speed = ' 10 3 60' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment