aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/gcc.fish
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-09-22 07:10:51 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-09-22 07:10:51 +1000
commit048f903a9d84306561c5a741898e7f16f45fb514 (patch)
treecc7c6fc9fa53d6169da47054cceb071018b07f38 /share/completions/gcc.fish
parentdab7e6c7b98825879cc03016113b31b575f3f7af (diff)
Create common function for listing available character encodings, make sure it is used in all relevant places.
darcs-hash:20070921211051-75c98-5ff21df5b29e8a66ef0c4488afb96acfdb6f74a2.gz
Diffstat (limited to 'share/completions/gcc.fish')
-rw-r--r--share/completions/gcc.fish6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/completions/gcc.fish b/share/completions/gcc.fish
index ba37d281..de98c426 100644
--- a/share/completions/gcc.fish
+++ b/share/completions/gcc.fish
@@ -464,9 +464,9 @@ complete -c gcc -o fdollars-in-identifiers --description '@anchor{fdollars-in-id
complete -c gcc -o fextended-identifiers --description 'Accept universal character names in identifiers'
complete -c gcc -o fpreprocessed --description 'Indicate to the preprocessor that the input file has already been preprocessed'
complete -c gcc -o ftabstop --description 'Set the distance between tab stops'
-complete -c gcc -o fexec-charset --description 'Set the execution character set, used for string and character constants' -a "(iconv --list|sed -e 's|//||')"
-complete -c gcc -o fwide-exec-charset --description 'Set the wide execution character set, used for wide string and character constants' -a "(iconv --list|sed -e 's|//||')"
-complete -c gcc -o finput-charset --description 'Set the input character set, used for translation from the character set of the input file to the source character set used by GCC' -a "(iconv --list|sed -e 's|//||')"
+complete -c gcc -o fexec-charset --description 'Set the execution character set, used for string and character constants' -a "(__fish_print_encodings)"
+complete -c gcc -o fwide-exec-charset --description 'Set the wide execution character set, used for wide string and character constants' -a "(__fish_print_encodings)"
+complete -c gcc -o finput-charset --description 'Set the input character set, used for translation from the character set of the input file to the source character set used by GCC' -a "(__fish_print_encodings)"
complete -c gcc -o fworking-directory --description 'Enable generation of linemarkers in the preprocessor output that will let the compiler know the current working directory at the time of preprocessing'
complete -c gcc -o fno-show-column --description 'Do not print column numbers in diagnostics'
complete -c gcc -s A --description 'Make an assertion with the predicate predicate and answer answer'