Command line utility to HTTP enable (publish) a dataset.

def cli():
    """Command line utility to HTTP enable (publish) a dataset."""
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument(
        "dataset_uri",
        help="Dtool dataset URI"
    )
    parser.add_argument(
        "-q",
        "--quiet",
        action="store_true",
        help="Only return the http URI"
    )
    args = parser.parse_args()
    access_uri = publish(args.dataset_uri)

    if args.quiet:
        print(access_uri)
    else:
        print("Dataset accessible at: {}".format(access_uri))