changeset 3228:d4cb92fea8f5

Updated usage info of subtler
author unexist
date Wed, 11 Jul 2012 13:51:48 +0200
parents c470f281a025
children f80a09cf54b7
files data/subtler/runner.rb
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/subtler/runner.rb	Tue Jul 10 18:06:59 2012 +0200
+++ b/data/subtler/runner.rb	Wed Jul 11 13:51:48 2012 +0200
@@ -325,7 +325,8 @@
       end # }}}
 
       def usage(group) # {{{
-        puts 'Usage: subtler [GENERIC|MODIFIER] GROUP ACTION [ARG1] [ARG2]\n\n'
+        puts 'Usage: subtler [GENERIC|MODIFIER] GROUP ACTION [ARG1] [ARG2]'
+        puts
 
         if group.nil?
           puts <<-EOF
@@ -333,6 +334,8 @@
     -d, --display=DISPLAY  Connect to DISPLAY (default: #{ENV['DISPLAY']})
     -h, --help             Show this help and exit
     -V, --version          Show version info and exit
+    -p, --proc             Create a ruby proc from given argument and yield the result
+                           of the group to it as parameter 'param'
 
   Modifier:
     -r, --reload           Reload config and sublets