[SCM] vim-addon-manager packaging branch, master, updated. v0.4.4-52-geef7258

Antonio Terceiro terceiro at debian.org
Tue Jan 31 23:33:12 UTC 2012


The following commit has been merged in the master branch:
commit c8e00f9958a966f2a6c07ad26e8641a0c4a415a3
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sun Jan 22 10:40:18 2012 -0200

    Add silent mode

diff --git a/bin/vim-addons b/bin/vim-addons
index b2da9a4..46ae423 100755
--- a/bin/vim-addons
+++ b/bin/vim-addons
@@ -124,6 +124,9 @@ All commands accept the following options:
 :-v, --verbose
   increase verbosity level
 
+:-z, --silent
+  silent mode: supress most of the output
+
 :-y, --system-dir
   set the system-wide target directory (default: /var/lib/vim/addons)
 
@@ -173,6 +176,7 @@ Options:
   -t, --target-dir    set the addons target directory
                         (default: $HOME/.vim)
   -v, --verbose       increase verbosity
+  -z, --silent        silent mode: supress most of the output
   -y, --system-dir    set the system-wide target directory
                         (default: /var/lib/vim/addons)
   -w, --system-wide   set target directory to the system-wide one
@@ -204,6 +208,7 @@ def parse_cmdline
                    ['--target-dir', '-t', GetoptLong::REQUIRED_ARGUMENT],
                    ['--query', '-q', GetoptLong::NO_ARGUMENT],
                    ['--verbose', '-v', GetoptLong::NO_ARGUMENT],
+                   ['--silent', '-z', GetoptLong::NO_ARGUMENT],
                    ['--system-dir', '-y', GetoptLong::REQUIRED_ARGUMENT],
                    ['--system-wide', '-w', GetoptLong::NO_ARGUMENT])
   begin
@@ -221,6 +226,8 @@ def parse_cmdline
         options[:query] = true
       when '--verbose'
         logger.increase_verbosity
+      when '--silent'
+        logger.quiet!
       when '--system-dir'
         options[:system_dir] = arg
       when '--system-wide'

-- 
vim-addon-manager packaging



More information about the pkg-vim-maintainers mailing list