Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix arg parsing logic so config file works #252

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions gplaycli/gplaycli.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,14 +608,14 @@ def main():
"""
parser = argparse.ArgumentParser(description="A Google Play Store Apk downloader and manager for command line")
parser.add_argument('-V', '--version', help="Print version number and exit", action='store_true')
parser.add_argument('-v', '--verbose', help="Be verbose", action='store_true')
parser.add_argument('-v', '--verbose', help="Be verbose", action='store_true', default=None)
parser.add_argument('-s', '--search', help="Search the given string in Google Play Store", metavar="SEARCH")
parser.add_argument('-d', '--download', help="Download the Apps that map given AppIDs", metavar="AppID", nargs="+")
parser.add_argument('-y', '--yes', help="Say yes to all prompted questions", action='store_true')
parser.add_argument('-l', '--list', help="List APKS in the given folder, with details", metavar="FOLDER")
parser.add_argument('-P', '--paid', help="Also search for paid apps", action='store_true', default=False)
parser.add_argument('-av', '--append-version', help="Append versionstring to APKs when downloading", action='store_true')
parser.add_argument('-a', '--additional-files', help="Enable the download of additional files", action='store_true', default=False)
parser.add_argument('-av', '--append-version', help="Append versionstring to APKs when downloading", action='store_true', default=None)
parser.add_argument('-a', '--additional-files', help="Enable the download of additional files", action='store_true', default=None)
parser.add_argument('-F', '--file', help="Load packages to download from file, one package per line", metavar="FILE")
parser.add_argument('-u', '--update', help="Update all APKs in a given folder", metavar="FOLDER")
parser.add_argument('-f', '--folder', help="Where to put the downloaded Apks, only for -d command", metavar="FOLDER", nargs=1, default=['.'])
Expand All @@ -625,8 +625,8 @@ def main():
parser.add_argument('-ts', '--token-str', help="Supply token string by yourself, need to supply GSF_ID at the same time", metavar="TOKEN_STR")
parser.add_argument('-g', '--gsfid', help="Supply GSF_ID by yourself, need to supply token string at the same time", metavar="GSF_ID")
parser.add_argument('-c', '--config', help="Use a different config file than gplaycli.conf", metavar="CONF_FILE", nargs=1)
parser.add_argument('-p', '--progress', help="Prompt a progress bar while downloading packages", action='store_true')
parser.add_argument('-L', '--log', help="Enable logging of apps status in separate logging files", action='store_true', default=False)
parser.add_argument('-p', '--progress', help="Prompt a progress bar while downloading packages", action='store_true', default=None)
parser.add_argument('-L', '--log', help="Enable logging of apps status in separate logging files", action='store_true', default=None)

if len(sys.argv) < 2:
sys.argv.append("-h")
Expand Down