bash-completion.sh
branchv_0
changeset 32 e72546725c77
parent 31 c6527b45fbc2
child 33 c9a158da6c32
equal deleted inserted replaced
31:c6527b45fbc2 32:e72546725c77
    73 		"unescape-basic"
    73 		"unescape-basic"
    74 		"unescape-java-properties"
    74 		"unescape-java-properties"
    75 		"unescape-backspace"
    75 		"unescape-backspace"
    76 		"tree-style"
    76 		"tree-style"
    77 		"tree-with-namespaces"
    77 		"tree-with-namespaces"
       
    78 		"root-name"
       
    79 		"enable-whitespace"
       
    80 		"enable-comments"
       
    81 		"enable-sub-keys"
       
    82 		"enable-line-numbers"
       
    83 		"enable-event-numbers"
    78 	);
    84 	);
    79 
    85 
    80 	DIALECTS=(
    86 	DIALECTS=(
    81 		"java-properties"
    87 		"java-properties"
    82 	);
    88 	);
   116 	elif [[ "$w2" == "--parser-option" && "$w1" == "comment-separators"      && "x$w0" == "x" ]];    then COMPREPLY=("'#;'")
   122 	elif [[ "$w2" == "--parser-option" && "$w1" == "comment-separators"      && "x$w0" == "x" ]];    then COMPREPLY=("'#;'")
   117 	elif [[ "$w2" == "--parser-option" && "$w1" == "key-value-separators"    && "x$w0" == "x" ]];    then COMPREPLY=("'=:'")
   123 	elif [[ "$w2" == "--parser-option" && "$w1" == "key-value-separators"    && "x$w0" == "x" ]];    then COMPREPLY=("'=:'")
   118 	elif [[ "$w2" == "--parser-option" && "$w1" == "quotes"                  && "x$w0" == "x" ]];    then COMPREPLY=("\$'\"\\''")
   124 	elif [[ "$w2" == "--parser-option" && "$w1" == "quotes"                  && "x$w0" == "x" ]];    then COMPREPLY=("\$'\"\\''")
   119 	elif [[ "$w2" == "--parser-option" && "$w1" == "tree-style"                               ]];    then COMPREPLY=($(compgen -W "${TREE_STYLES[*]}" -- "$w0"))
   125 	elif [[ "$w2" == "--parser-option" && "$w1" == "tree-style"                               ]];    then COMPREPLY=($(compgen -W "${TREE_STYLES[*]}" -- "$w0"))
   120 	elif [[ "$w2" == "--parser-option" && "$w1" == "tree-with-namespaces"                     ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
   126 	elif [[ "$w2" == "--parser-option" && "$w1" == "tree-with-namespaces"                     ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
       
   127 	elif [[ "$w2" == "--parser-option" && "$w1" == "root-name"               && "x$w0" == "x" ]];    then COMPREPLY=("'ini'")
       
   128 	elif [[ "$w2" == "--parser-option" && "$w1" == "enable-whitespace"                        ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
       
   129 	elif [[ "$w2" == "--parser-option" && "$w1" == "enable-comments"                          ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
       
   130 	elif [[ "$w2" == "--parser-option" && "$w1" == "enable-sub-keys"                          ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
       
   131 	elif [[ "$w2" == "--parser-option" && "$w1" == "enable-line-numbers"                      ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
       
   132 	elif [[ "$w2" == "--parser-option" && "$w1" == "enable-event-numbers"                     ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
   121 
   133 
   122 	else
   134 	else
   123 		OPTIONS=(
   135 		OPTIONS=(
   124 			"--namespace"
   136 			"--namespace"
   125 			"--parser-option"
   137 			"--parser-option"