Merge pull request #84 from tutacat/patch-5
Allow CLI help without root
This commit was merged in pull request #84.
This commit is contained in:
@@ -15,7 +15,6 @@ def main():
|
|||||||
Does stuff like installing Gapps, Installing NDK Translation and getting Android ID for device registration.
|
Does stuff like installing Gapps, Installing NDK Translation and getting Android ID for device registration.
|
||||||
Use -h flag for help !
|
Use -h flag for help !
|
||||||
"""
|
"""
|
||||||
helper.check_root()
|
|
||||||
parser = argparse.ArgumentParser(description=about, formatter_class=argparse.RawDescriptionHelpFormatter)
|
parser = argparse.ArgumentParser(description=about, formatter_class=argparse.RawDescriptionHelpFormatter)
|
||||||
parser.add_argument('-g', '--install-gapps',
|
parser.add_argument('-g', '--install-gapps',
|
||||||
dest='gapps',
|
dest='gapps',
|
||||||
@@ -38,6 +37,7 @@ def main():
|
|||||||
help='Integrate Widevine DRM (L3)',
|
help='Integrate Widevine DRM (L3)',
|
||||||
action='store_true')
|
action='store_true')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
helper.check_root()
|
||||||
if args.getid:
|
if args.getid:
|
||||||
Android_id().get_id()
|
Android_id().get_id()
|
||||||
if args.gapps:
|
if args.gapps:
|
||||||
|
|||||||
Reference in New Issue
Block a user