diff options
-rw-r--r-- | lib/spack/spack/cmd/common/arguments.py | 2 | ||||
-rw-r--r-- | lib/spack/spack/cmd/find.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/common/arguments.py b/lib/spack/spack/cmd/common/arguments.py index 1470ea035d..1839132218 100644 --- a/lib/spack/spack/cmd/common/arguments.py +++ b/lib/spack/spack/cmd/common/arguments.py @@ -55,7 +55,7 @@ class ConstraintAction(argparse.Action): def __call__(self, parser, namespace, values, option_string=None): # Query specs from command line self.values = values - namespace.contraint = values + namespace.constraint = values namespace.specs = self._specs def _specs(self, **kwargs): diff --git a/lib/spack/spack/cmd/find.py b/lib/spack/spack/cmd/find.py index 542114c8c1..9f1759afc0 100644 --- a/lib/spack/spack/cmd/find.py +++ b/lib/spack/spack/cmd/find.py @@ -116,7 +116,7 @@ def find(parser, args): query_specs = args.specs(**q_args) # Exit early if no package matches the constraint if not query_specs and args.constraint: - msg = "No package matches the query: {0}".format(args.contraint) + msg = "No package matches the query: {0}".format(args.constraint) tty.msg(msg) return # Display the result |