Skip to content

Commit

Permalink
Last fix was wrong. Replaced "dest" with "metavar".
Browse files Browse the repository at this point in the history
  • Loading branch information
Arik Kfir committed Nov 28, 2017
1 parent f726d1b commit f12a7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update_dns_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def update_dns_record(zone_id: int, auth_email: str, auth_key: str, subdomain: s
def main():
argparser = argparse.ArgumentParser(description='Updates Cloudflare DNS records')
argparser.add_argument('domain', help='public suffix domain name, eg. \'mydomain.com\'')
argparser.add_argument('auth-email', dest='auth_email', help='Email of the account used to connect to Cloudflare')
argparser.add_argument('auth-key', dest='auth_key', help='authentication key of the Cloudflare account')
argparser.add_argument('auth_email', metavar='EMAIL', help='Email of the account used to connect to Cloudflare')
argparser.add_argument('auth_key', metavar='KEY', help='authentication key of the Cloudflare account')
args = argparser.parse_args()

zone: dict = requests.get(
Expand Down

0 comments on commit f12a7f9

Please sign in to comment.