fix: ArgumentParser import and formatter_class
- Use instead of - Fix formatter_class to use argparse.ArgumentDefaultsHelpFormatter
This commit is contained in:
+3
-3
@@ -21,7 +21,7 @@ import json
|
|||||||
import logging
|
import logging
|
||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
from argparse import ArgumentParser
|
import argparse
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any, Dict, Optional
|
from typing import Any, Dict, Optional
|
||||||
@@ -290,9 +290,9 @@ async def create_app() -> SimpleHTTPHandler:
|
|||||||
|
|
||||||
def parse_args() -> Any:
|
def parse_args() -> Any:
|
||||||
"""Parse command line arguments."""
|
"""Parse command line arguments."""
|
||||||
parser = ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="BECOMINGONE API Server",
|
description="BECOMINGONE API Server",
|
||||||
formatter_class=ArgumentParser,
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|||||||
Reference in New Issue
Block a user