Skip to content

Commit

Permalink
Fixed url and token arguments by removing nargs
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSwainston committed Jan 8, 2024
1 parent c65211e commit a6e4557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psrdb/graphql_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a6e4557

Please sign in to comment.