bash-completion.sh
branchv_0
changeset 41 12acb6c02d32
parent 40 85b6f13f1088
equal deleted inserted replaced
40:85b6f13f1088 41:12acb6c02d32
    65 		"encoding"
    65 		"encoding"
    66 		"parse-encapsulated"
    66 		"parse-encapsulated"
    67 		"tree-style"
    67 		"tree-style"
    68 		"tree-with-namespaces"
    68 		"tree-with-namespaces"
    69 		"root-name"
    69 		"root-name"
       
    70 		"bit-string-symbol-0"
       
    71 		"bit-string-symbol-1"
    70 	);
    72 	);
    71 
    73 
    72 	ENCODINGS=(
    74 	ENCODINGS=(
    73 		"BER"
    75 		"BER"
    74 		"DER"
    76 		"DER"
   105 	elif [[ "$w2" == "--parser-option" && "$w1" == "encoding"                                 ]];    then COMPREPLY=($(compgen -W "${ENCODINGS[*]}" -- "$w0"))
   107 	elif [[ "$w2" == "--parser-option" && "$w1" == "encoding"                                 ]];    then COMPREPLY=($(compgen -W "${ENCODINGS[*]}" -- "$w0"))
   106 	elif [[ "$w2" == "--parser-option" && "$w1" == "parse-encapsulated"                       ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
   108 	elif [[ "$w2" == "--parser-option" && "$w1" == "parse-encapsulated"                       ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
   107 	elif [[ "$w2" == "--parser-option" && "$w1" == "tree-style"                               ]];    then COMPREPLY=($(compgen -W "${TREE_STYLES[*]}" -- "$w0"))
   109 	elif [[ "$w2" == "--parser-option" && "$w1" == "tree-style"                               ]];    then COMPREPLY=($(compgen -W "${TREE_STYLES[*]}" -- "$w0"))
   108 	elif [[ "$w2" == "--parser-option" && "$w1" == "tree-with-namespaces"                     ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
   110 	elif [[ "$w2" == "--parser-option" && "$w1" == "tree-with-namespaces"                     ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
   109 	elif [[ "$w2" == "--parser-option" && "$w1" == "root-name"               && "x$w0" == "x" ]];    then COMPREPLY=("'asn1'")
   111 	elif [[ "$w2" == "--parser-option" && "$w1" == "root-name"               && "x$w0" == "x" ]];    then COMPREPLY=("'asn1'")
       
   112 	elif [[ "$w2" == "--parser-option" && "$w1" == "bit-string-symbol-0"     && "x$w0" == "x" ]];    then COMPREPLY=("'0'")
       
   113 	elif [[ "$w2" == "--parser-option" && "$w1" == "bit-string-symbol-1"     && "x$w0" == "x" ]];    then COMPREPLY=("'1'")
   110 	
   114 	
   111 	else
   115 	else
   112 		OPTIONS=(
   116 		OPTIONS=(
   113 			"--namespace"
   117 			"--namespace"
   114 			"--parser-option"
   118 			"--parser-option"