diff --git a/psrdb/graphql_table.py b/psrdb/graphql_table.py index 190123a..016e7f2 100644 --- a/psrdb/graphql_table.py +++ b/psrdb/graphql_table.py @@ -238,8 +238,8 @@ def get_default_parser(cls, desc=""): from os import environ parser = ArgumentParser(description=desc) - parser.add_argument("-t", "--token", nargs=1, default=environ.get("PSRDB_TOKEN"), help="JWT token") - parser.add_argument("-u", "--url", nargs=1, default=environ.get("PSRDB_URL", "https://pulsars.org.au/api/"), help="GraphQL URL") + parser.add_argument("-t", "--token", default=environ.get("PSRDB_TOKEN"), help="JWT token") + parser.add_argument("-u", "--url", default=environ.get("PSRDB_URL", "https://pulsars.org.au/api/"), help="GraphQL URL") parser.add_argument("-q", "--quiet", action="store_true", default=False, help="Return ID only") parser.add_argument("-v", "--verbose", action="store_true", default=False, help="Increase verbosity") return parser