]> git.tuebingen.mpg.de Git - adu.git/blobdiff - select.ggo
Fix the user summary.
[adu.git] / select.ggo
index d8f3ae3a37ad8b51ae9e8c3f03b106750af46117..0e98f4adb64fec3f3b45cfd3e431caf6234b5ac2 100644 (file)
@@ -33,15 +33,30 @@ details="
        This is mostly useful to feed the output of adu to scripts.
 "
 
-option "sort" s
-#~~~~~~~~~~~~~~~
-"how to sort the output"
+option "select-mode" m
+#~~~~~~~~~~~~~~~~~~~~~
+"How to print the results of the query"
 enum typestr="<key>"
-values="sizes","files","unsorted"
-default="sizes"
+values="global_list","global_summary","user_list","user_summary"
+default="global_list"
+optional
+details="
+       global_list: List of directories, regardless of owner.
+       global_summary: Only print totals.
+       user_list: Print a list for each admissible uid.
+       user_summary Print totals for each admissible uid.
+"
+
+option "list-sort" s
+#~~~~~~~~~~~~~~~~~~~
+"how to sort the user list or the global list"
+enum typestr="<key>"
+values="size","file_count"
+default="size"
 optional
 details="
-       Sort by file size, file count or unsorted.
+       This option is ignored if select-mode is neither \"user_list\", nor
+       \"global_list\".
 "
 
 option "output" o
@@ -145,6 +160,18 @@ details="
 section "Format strings"
 ########################
 
+option "global-list-format" -
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+"How to format the global list"
+string typestr="<format>"
+default="%(size:r:8) %(files:r:8) %(dirname)\n"
+details="
+       size: Total size of all files
+       files: The number of files
+       dirname: The name of the directory
+"
+
+optional
 option "global-summary-format" -
 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 "How to format the global summary"