From 5397606b34912307e2e3747b818b458778daae70 Mon Sep 17 00:00:00 2001
From: Glenn Johnson <glenn-johnson@uiowa.edu>
Date: Fri, 20 Sep 2019 13:09:44 -0500
Subject: [PATCH] Add --known-targets to bash completion for arch command
 (#12887)

This PR adds the new --known-targets flag to the `spack arch` command.
---
 share/spack/spack-completion.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 45dae0e171..bd6675dd16 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -126,7 +126,7 @@ function _spack_add {
 
 function _spack_arch {
     compgen -W "-h --help -p --platform -o --operating-system
-                -t --target" -- "$cur"
+                -t --target --known-targets" -- "$cur"
 }
 
 function _spack_blame {
-- 
GitLab