Add BASE_LOGO to sanic cli
This commit is contained in:
parent
a026cd7195
commit
33ee4c21b3
|
@ -1,11 +1,12 @@
|
|||
import os
|
||||
import sys
|
||||
from argparse import ArgumentParser
|
||||
from argparse import ArgumentParser, RawDescriptionHelpFormatter
|
||||
from importlib import import_module
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
from sanic import __version__
|
||||
from sanic.app import Sanic
|
||||
from sanic.config import BASE_LOGO
|
||||
from sanic.log import logger
|
||||
|
||||
|
||||
|
@ -20,7 +21,9 @@ class SanicArgumentParser(ArgumentParser):
|
|||
|
||||
|
||||
def main():
|
||||
parser = SanicArgumentParser(prog="sanic")
|
||||
parser = SanicArgumentParser(
|
||||
prog="sanic", description=BASE_LOGO, formatter_class=RawDescriptionHelpFormatter
|
||||
)
|
||||
parser.add_argument(
|
||||
"-H",
|
||||
"--host",
|
||||
|
|
Loading…
Reference in New Issue
Block a user