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

    Args:
        parser (argparse._SubParsersAction): The parser object
    """
    subparser = parser.add_parser(
        "activate", help="Activate environment settings", add_help=False
    )

    command_group = subparser.add_argument_group("Environment")
    command_group.add_argument(
        "name",
        type=str,
        nargs="?",
        default=None,
        help="Name of the env to activate",
    )
    command_group = subparser.add_argument_group("Custom")
    command_group.add_argument("--tool")
    command_group.add_argument("--cad")
    command_group.add_argument("--hls")
    command_group.add_argument("--sim")
    subparser.set_defaults(func=api.activate)
    add_help(subparser)

    Parse the "activate" argument

    Args:
        parser (argparse._SubParsersAction): The parser object
    
Parse the "activate" argument
Parse the " activate " argument
def activate(parser):
    subparser = parser.add_parser(
        "activate", help="Activate environment settings", add_help=False
    )
    command_group = subparser.add_argument_group("Environment")
    command_group.add_argument(
        "name",
        type=str,
        nargs="?",
        default=None,
        help="Name of the env to activate",
    )
    command_group = subparser.add_argument_group("Custom")
    command_group.add_argument("--tool")
    command_group.add_argument("--cad")
    command_group.add_argument("--hls")
    command_group.add_argument("--sim")
    subparser.set_defaults(func=api.activate)
    add_help(subparser)
def activate ( parser ) : subparser = parser . add_parser ( "activate" , help = "Activate environment settings" , add_help = False ) command_group = subparser . add_argument_group ( "Environment" ) command_group . add_argument ( "name" , type = str , nargs = "?" , default = None , help = "Name of the env to activate" , ) command_group = subparser . add_argument_group ( "Custom" ) command_group . add_argument ( "--tool" ) command_group . add_argument ( "--cad" ) command_group . add_argument ( "--hls" ) command_group . add_argument ( "--sim" ) subparser . set_defaults ( func = api . activate ) add_help ( subparser )
Parse the "activate" argument
Parse the " activate " argument
"""
    Parse the "activate" argument

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