munkireport_parser.py
def parse_args():
    """Define argument parser and returns parsed command line arguments"""
    parser = argparse.ArgumentParser(
        description="Tool to create user-readable reports of selected paramaters from munkireport",
    )
    parser.add_argument(
        "-c",
        "--config",
        dest="config_file",
        type=argparse.FileType("r"),
        default=CONFIG_PATH_DEFAULT,
        help="Path to configuration file",
    )

    return parser.parse_args()
Define argument parser and returns parsed command line arguments
Define argument parser and returns parsed command line arguments
Define argument parser and returns parsed command line arguments
def parse_args():
    parser = argparse.ArgumentParser(
        description="Tool to create user-readable reports of selected paramaters from munkireport",
    )
    parser.add_argument(
        "-c",
        "--config",
        dest="config_file",
        type=argparse.FileType("r"),
        default=CONFIG_PATH_DEFAULT,
        help="Path to configuration file",
    )
    return parser.parse_args()
def parse_args ( ) : parser = argparse . ArgumentParser ( description = "Tool to create user-readable reports of selected paramaters from munkireport" , ) parser . add_argument ( "-c" , "--config" , dest = "config_file" , type = argparse . FileType ( "r" ) , default = CONFIG_PATH_DEFAULT , help = "Path to configuration file" , ) return parser . parse_args ( )
Define argument parser and returns parsed command line arguments
Define argument parser and returns parsed command line arguments
"""Define argument parser and returns parsed command line arguments"""