From 4665805340d068a5e17bd7f60addac930383acf5 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 13 Feb 2024 19:34:07 +1100 Subject: [PATCH] remove argparse --- docs/docs/exctract_schema.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/docs/docs/exctract_schema.py b/docs/docs/exctract_schema.py index 265304ebed3..4b21ff3ddac 100644 --- a/docs/docs/exctract_schema.py +++ b/docs/docs/exctract_schema.py @@ -1,6 +1,5 @@ """Extract API schema and split into smaller subsections.""" -import argparse import os import textwrap @@ -134,12 +133,3 @@ def parse_api_file(filename: str): # Finally, generate an index file for the API schema generate_index_file(data['info']['version']) - - -if __name__ == '__main__': - parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument('input', help='Input API schema file (.yml)') - - args = parser.parse_args() - - parse_api_file(args.input)