def cli(ctx, packages, all, list, platform):
    """Uninstall packages."""

    if packages:
        _uninstall(packages, platform)
    elif all:  # pragma: no cover
        packages = Resources(platform).packages
        _uninstall(packages, platform)
    elif list:
        Resources(platform).list_packages(installed=True, notinstalled=False)
    else:
        click.secho(ctx.get_help())
def cli ( ctx , packages , all , list , platform ) : if packages : _uninstall ( packages , platform ) elif all : packages = Resources ( platform ) . packages _uninstall ( packages , platform ) elif list : Resources ( platform ) . list_packages ( installed = True , notinstalled = False ) else : click . secho ( ctx . get_help ( ) )
Uninstall packages.