def info(cabdir, header=False):
    """ prints out help information about a cab """

    # First check if cab exists
    pfile = "{}/parameters.json".format(cabdir)
    if not os.path.exists(pfile):
        raise RuntimeError("Cab could not be found at : {}".format(cabdir))
    # Get cab info
    cab_definition = cab.CabDefinition(parameter_file=pfile)
    cab_definition.display(header)
def info ( cabdir , header = False ) : pfile = "{}/parameters.json" . format ( cabdir ) if not os . path . exists ( pfile ) : raise RuntimeError ( "Cab could not be found at : {}" . format ( cabdir ) ) cab_definition = cab . CabDefinition ( parameter_file = pfile ) cab_definition . display ( header )
prints out help information about a cab