docs(usage): Format epilog (#1562)

This commit is contained in:
Pepe Fagoaga
2022-12-21 10:42:19 +01:00
committed by GitHub
parent ba2620d91d
commit 4e34040e62
2 changed files with 9 additions and 4 deletions

View File

@@ -11,9 +11,7 @@ timestamp = datetime.today()
timestamp_utc = datetime.now(timezone.utc).replace(tzinfo=timezone.utc)
prowler_version = "3.0.0"
html_logo_url = "https://github.com/prowler-cloud/prowler/"
html_logo_img = (
"https://github.com/prowler-cloud/prowler/raw/master/util/html/prowler-logo-new.png"
)
html_logo_img = "https://user-images.githubusercontent.com/3985464/113734260-7ba06900-96fb-11eb-82bc-d4f68a1e2710.png"
orange_color = "\033[38;5;208m"
banner_color = "\033[1;92m"

View File

@@ -1,5 +1,6 @@
import argparse
import sys
from argparse import RawTextHelpFormatter
from prowler.config.config import (
default_output_directory,
@@ -14,7 +15,13 @@ class ProwlerArgumentParser:
# CLI Arguments
self.parser = argparse.ArgumentParser(
prog="prowler",
epilog="To see the different available options on a specific provider, run: prowler {provider} -h|--help",
formatter_class=RawTextHelpFormatter,
epilog="""
To see the different available options on a specific provider, run:
prowler {provider} -h|--help
Detailed documentation at https://docs.prowler.cloud
""",
)
# Default
self.parser.add_argument(