summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/find.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/find.py b/lib/spack/spack/cmd/find.py
index f7bd56db19..15ea5c7709 100644
--- a/lib/spack/spack/cmd/find.py
+++ b/lib/spack/spack/cmd/find.py
@@ -31,6 +31,14 @@ def setup_parser(subparser):
help="output specs with the specified format string",
)
format_group.add_argument(
+ "-H",
+ "--hashes",
+ action="store_const",
+ dest="format",
+ const="{/hash}",
+ help="same as '--format {/hash}'; use with xargs or $()",
+ )
+ format_group.add_argument(
"--json",
action="store_true",
default=False,