From 7aca69780c8c89310e1f557eab040c7e3db4d70b Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Tue, 1 Jan 2019 20:39:26 +0900 Subject: [PATCH] Replace deprecated options with newly introduced options for gem. Signed-off-by: Takuya Noguchi --- share/completions/gem.fish | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/share/completions/gem.fish b/share/completions/gem.fish index aaf6a39a2..bd4a82635 100644 --- a/share/completions/gem.fish +++ b/share/completions/gem.fish @@ -99,10 +99,8 @@ complete $install_opt -s l -l local -d "Restrict operations to the LOCAL domain complete $install_opt -s r -l remote -d "Restrict operations to the REMOTE domain" complete $install_opt -s b -l both -d "Allow LOCAL and REMOTE operations" complete $install_opt -s i -l install-dir -d "Gem repository directory to get installed gems" -x -complete $install_opt -s d -l rdoc -d "Generate RDoc documentation for the gem on install" -complete $install_opt -l no-rdoc -d "Don't generate RDoc documentation for the gem on install" -complete $install_opt -l ri -d "Generate RI documentation for the gem on install" -complete $install_opt -l no-ri -d "Don't generate RI documentation for the gem on install" +complete $install_opt -s N -l no-document -d "Disable documentation generation on install" +complete $install_opt -l document -a '(__fish_append , rdoc ri)' -d "Specify the documentation types you wish to generate" complete $install_opt -s f -l force -d "Force gem to install, bypassing dependency checks" complete $install_opt -l no-force -d "Don't force gem to install, bypassing dependency checks" complete $install_opt -s t -l test -d "Run unit tests prior to installation" @@ -180,10 +178,8 @@ complete $unpack_opt -s v -l version -d "Specify version of gem to unpack" -x # update set -l update_opt -c gem -n 'contains update (commandline -poc)' complete $update_opt -s i -l install-dir -d "Gem repository directory to get installed gems" -complete $update_opt -s d -l rdoc -d "Generate RDoc documentation for the gem on install" -complete $update_opt -l no-rdoc -d "Don't generate RDoc documentation for the gem on install" -complete $update_opt -l ri -d "Generate RI documentation for the gem on install" -complete $update_opt -l no-ri -d "Don't generate RI documentation for the gem on install" +complete $update_opt -s N -l no-document -d "Disable documentation generation on update" +complete $update_opt -l document -a '(__fish_append , rdoc ri)' -d "Specify the documentation types you wish to generate" complete $update_opt -s f -l force -d "Force gem to install, bypassing dependency checks" complete $update_opt -l no-force -d "Don't force gem to install, bypassing dependency checks" complete $update_opt -s t -l test -d "Run unit tests prior to installation"