sonar/cli.py
def database(parser):
    """
    Parse the "database" argument

    Args:
        parser (argparse._SubParserAction): The parser object
    """
    subparser = parser.add_parser(
        "database", help="Manipulate the sonar database", add_help=False
    )
    subsubparser = subparser.add_subparsers(
        title="Commands", metavar="command"
    )

    def f_list():
        command = subsubparser.add_parser(
            "list",
            help="Print the database",
            add_help=False,
            description=textwrap.dedent(
                """\
                Prints the database
                """
            ),
        )

        command.set_defaults(func=api.Database.f_list)
        add_help(command)

    f_list()
    add_help(subparser)

    Parse the "database" argument

    Args:
        parser (argparse._SubParserAction): The parser object
    
Parse the "database" argument
Parse the " database " argument
def database(parser):
    subparser = parser.add_parser(
        "database", help="Manipulate the sonar database", add_help=False
    )
    subsubparser = subparser.add_subparsers(
        title="Commands", metavar="command"
    )
    def f_list():
        command = subsubparser.add_parser(
            "list",
            help="Print the database",
            add_help=False,
            description=textwrap.dedent(
                """\
                Prints the database
                """
            ),
        )
        command.set_defaults(func=api.Database.f_list)
        add_help(command)
    f_list()
    add_help(subparser)
def database ( parser ) : subparser = parser . add_parser ( "database" , help = "Manipulate the sonar database" , add_help = False ) subsubparser = subparser . add_subparsers ( title = "Commands" , metavar = "command" ) def f_list ( ) : command = subsubparser . add_parser ( "list" , help = "Print the database" , add_help = False , description = textwrap . dedent ( """\
                Prints the database
                """ ) , ) command . set_defaults ( func = api . Database . f_list ) add_help ( command ) f_list ( ) add_help ( subparser )
Parse the "database" argument
Parse the " database " argument
"""
    Parse the "database" argument

    Args:
        parser (argparse._SubParserAction): The parser object
    """
parser
The parser object
The parser object