mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
remove argparse
This commit is contained in:
parent
f276f19a89
commit
4665805340
@ -1,6 +1,5 @@
|
|||||||
"""Extract API schema and split into smaller subsections."""
|
"""Extract API schema and split into smaller subsections."""
|
||||||
|
|
||||||
import argparse
|
|
||||||
import os
|
import os
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
@ -134,12 +133,3 @@ def parse_api_file(filename: str):
|
|||||||
|
|
||||||
# Finally, generate an index file for the API schema
|
# Finally, generate an index file for the API schema
|
||||||
generate_index_file(data['info']['version'])
|
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)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user