import argparse

def parse_args():
    parser = argparse.ArgumentParser(
        description="""Python telegram bot requester""",
        add_help=True,
        prog="sshd-telgram-alert"
    )
    parser.add_argument(
        "-l",
        "--level",
        choices=["INFO", "WARNING", "ERROR", "CRITICAL", "DEBUG"],
        required=False,
        dest="log_level",
        default="DEBUG",
        help="""level of logging""",
        type=str,
    )
    parser.add_argument(
        "-c",
        "--create-config",
        required=False,
        dest="create_config",
        action='store_true',
        help="""Interactive registration token and chat_id""",
    )
    parser.add_argument(
        "-m",
        "--message",
        required=False,
        dest="message",
        help="""Custom message you want to send to telegram bot chat""",
        type=str,
    )
    parser.add_argument(
        "-sp",
        "--sshd-pam-detection",
        required=False,
        dest="sshd_pam_detection",
        action='store_true',
        help="""Enable PAM feature when you are using this script to monitor ssh connections. (Only for linux system)""",
    )

    return parser.parse_args()

import argparse

def parse_args():
    parser = argparse.ArgumentParser(
        description="""Python telegram bot requester""",
        add_help=True,
        prog="sshd-telgram-alert"
    )
    parser.add_argument(
        "-l",
        "--level",
        choices=["INFO", "WARNING", "ERROR", "CRITICAL", "DEBUG"],
        required=False,
        dest="log_level",
        default="DEBUG",
        help="""level of logging""",
        type=str,
    )
    parser.add_argument(
        "-c",
        "--create-config",
        required=False,
        dest="create_config",
        action='store_true',
        help="""Interactive registration token and chat_id""",
    )
    parser.add_argument(
        "-m",
        "--message",
        required=False,
        dest="message",
        help="""Custom message you want to send to telegram bot chat""",
        type=str,
    )
    parser.add_argument(
        "-sp",
        "--sshd-pam-detection",
        required=False,
        dest="sshd_pam_detection",
        action='store_true',
        help="""Enable PAM feature when you are using this script to monitor ssh connections. (Only for linux system)""",
    )

    return parser.parse_args()

Python telegram bot requester level of logging Interactive registration token and chat_id Custom message you want to send to telegram bot chat Enable PAM feature when you are using this script to monitor ssh connections. (Only for linux system)