Module continuous_delivery_scripts.describe_licence_obligations

Describe project licence obligations from public SPDX and OSADL sources.

Functions

def main() ‑> int
Expand source code
def main() -> int:
    """Create a CLI for describing project licence obligations."""
    parser = argparse.ArgumentParser(description="Describe licence obligations from SPDX and OSADL data.")
    parser.add_argument("-v", "--verbose", action="count", default=0, help="Increase logging verbosity.")
    args = parser.parse_args()
    set_log_level(args.verbose)
    try:
        print(describe_licence_obligations(), end="")
        return 0
    except Exception as error:
        log_exception(logger, error)
        return 1

Create a CLI for describing project licence obligations.