diff --git a/lib/spack/spack/cmd/uninstall.py b/lib/spack/spack/cmd/uninstall.py index 5ba41f66f28..4889215b2e1 100644 --- a/lib/spack/spack/cmd/uninstall.py +++ b/lib/spack/spack/cmd/uninstall.py @@ -115,7 +115,7 @@ def find_matching_specs(env, specs, allow_multiple_matches=False, force=False, spec_copy.concretize() if spec_copy.package.installed_upstream: tty.warn("{0} is installed upstream".format(spec_name)) - tty.die("Use 'spack uninstall [-u upstream_name]'") + tty.die("Use 'spack uninstall [--upstream upstream_name]'") # constrain uninstall resolution to current environment if one is active hashes = env.all_hashes() if env else None