diff --git a/network/dyndns_api.rst b/network/dyndns_api.rst index 79822e4..afbd952 100644 --- a/network/dyndns_api.rst +++ b/network/dyndns_api.rst @@ -37,20 +37,20 @@ Parse les argument du scripts .. code-block:: python :linenos: - def get_args(): - """ - parse agrs - """ - parser = argparse.ArgumentParser(description="Update dns zone with online.net API") - group = parser.add_mutually_exclusive_group() - group.add_argument("-v", "--verbose", action="store_true") - group.add_argument("-q", "--quiet", action="store_true") - parser.add_argument("-c", "--clean", help="clean old unused zones", action="store_true") - parser.add_argument("-t", "--token", help="token's API (https://console.online.net/fr/api/access)") - parser.add_argument("-u", "--url", help="url to get public ip, default=http://ifconfig.me", default="http://ifconfig.me") - parser.add_argument("-r", "--records", help="records to update, comma separated list") - parser.add_argument("domain", help="domain to update") - return parser.parse_args() + def get_args(): + """ + parse agrs + """ + parser = argparse.ArgumentParser(description="Update dns zone with online.net API") + group = parser.add_mutually_exclusive_group() + group.add_argument("-v", "--verbose", action="store_true") + group.add_argument("-q", "--quiet", action="store_true") + parser.add_argument("-c", "--clean", help="clean old unused zones", action="store_true") + parser.add_argument("-t", "--token", help="token's API (https://console.online.net/fr/api/access)") + parser.add_argument("-u", "--url", help="url to get public ip, default=http://ifconfig.me", default="http://ifconfig.me") + parser.add_argument("-r", "--records", help="records to update, comma separated list") + parser.add_argument("domain", help="domain to update") + return parser.parse_args() fonction clear