From 2390c055ba438f5c6109359b7eb93924e538c846 Mon Sep 17 00:00:00 2001 From: Milka64 Date: Sat, 30 Oct 2021 17:55:42 +0200 Subject: [PATCH] try to fix code block --- network/dyndns_api.rst | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) 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