[Xfce4-commits] <xfce-server-scripts:master> Use -l/--list instead of -d/--dump.

Jannis Pohlmann jannis at xfce.org
Thu Sep 3 22:10:01 CEST 2009


Updating branch refs/heads/master
         to 72b8afea4bbdda43ac187e26e84590bdff01e382 (commit)
       from 106524177736b4343aab51a2a2d97774d8656b79 (commit)

commit 72b8afea4bbdda43ac187e26e84590bdff01e382
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Thu Sep 3 20:08:48 2009 +0000

    Use -l/--list instead of -d/--dump.

 bin/xfce-manage-git-permissions |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/xfce-manage-git-permissions b/bin/xfce-manage-git-permissions
index 449a415..52d4178 100755
--- a/bin/xfce-manage-git-permissions
+++ b/bin/xfce-manage-git-permissions
@@ -11,7 +11,7 @@ include Xfce::ServerScripts::GitPermissions
 
 options = OpenStruct.new
 options.config_dir = '/etc/xfce-server-files/git-permissions'
-options.dump = false
+options.list = false
 options.resolve_groups = false
 
 User.load do 
@@ -140,8 +140,8 @@ ARGV.options do |opts|
     options.remove_from_group = User.new(name) if options.remove_from_group.nil?
   end
 
-  opts.on('-d', '--dump', 'Dumps all permissions in a readable manner') do 
-    options.dump = true
+  opts.on('-l', '--list', 'Dumps all permissions in a readable manner') do 
+    options.list = true
   end
 
   opts.on('-s', '--resolve-groups', 'Resolves groups and prints their users instead') do
@@ -156,7 +156,7 @@ if ARGV.size >= 1
   repository = Repository.new(name, []) if repository.nil?
 end
 
-if options.dump
+if options.list
   puts "Users:"
   for user in User.find_all
     puts "user #{user.username}"



More information about the Xfce4-commits mailing list