Skip to content

Instantly share code, notes, and snippets.

@ndvo2710
Created March 15, 2018 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndvo2710/a798361c0994b95651e3babce5dcd963 to your computer and use it in GitHub Desktop.
Save ndvo2710/a798361c0994b95651e3babce5dcd963 to your computer and use it in GitHub Desktop.
py:: argparse
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