]> git.tuebingen.mpg.de Git - adu.git/blobdiff - select.ggo
Convert the user-lists to pretty-formating.
[adu.git] / select.ggo
index 0e98f4adb64fec3f3b45cfd3e431caf6234b5ac2..660839b28c5fdc6236a3e1958e530dc67bbd0885 100644 (file)
@@ -27,7 +27,7 @@ details="
 
 option "no-headers" -
 #~~~~~~~~~~~~~~~~~~~~
-"supress descriptions for listings/tables"
+"supress descriptions for listings/summaries"
 flag off
 details="
        This is mostly useful to feed the output of adu to scripts.
@@ -69,34 +69,6 @@ details="
        If empty, or not given, use stdout.
 "
 
-option "size-unit" -
-#~~~~~~~~~~~~~~~~~~~
-"select output format for sizes"
-enum typestr="format"
-values="h","b","k","m","g","t"
-default="h"
-optional
-details="
-       Print sizes in the given unit: human-readable, bytes,
-       kilobytes (2^10), megabytes (2^20), gigabytes (2^30), terabytes
-       (2^40). The default is \"h\", i.e. human-readable.
-"
-
-option "count-unit" -
-#~~~~~~~~~~~~~~~~~~~~
-"select output format for counted values"
-enum typestr="format"
-values="h","n","k","m","g","t"
-default="h"
-optional
-details="
-       Print the number of files/directories in the given unit:
-       human-readable, number, number/10^3, number/10^6, number/10^12,
-       number/10^15. The default is to print numbers in human-readable
-       format.
-"
-
-
 option "user-summary-sort" -
 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
 "how to sort the user-summary"
@@ -109,43 +81,6 @@ details="
        e.g. \"--user-summary-sort f\" sorts by file count.
 "
 
-option "no-user-summary" -
-#~~~~~~~~~~~~~~~~~~~~~~~~~~~
-"do not print the user summary table"
-flag off
-
-
-option "user-list" -
-#~~~~~~~~~~~~~~~~~~~
-"how to print per-user directory listings"
-enum typestr="which"
-values="size","file_count","both","none"
-default="both"
-optional
-details="
-       Similar to the global directory listings mentioned above,
-       adu can print two directory listings per user. This option
-       controls which of the these should be printed.
-"
-option "no-global-summary" -
-#~~~~~~~~~~~~~~~~~~~~~~~~~~~
-"do not print the summary line"
-flag off
-
-option "global-list" -
-#~~~~~~~~~~~~~~~~~~~~~
-"how to print global directory listings"
-enum typestr="which"
-values="size","file_count","both","none"
-default="both"
-optional
-details="
-       By default adu prints two global directory listings: The
-       first prints the directory names ordered by the sum of the
-       sizes of the contained files while the second listing prints
-       them sorted by the number of files. This option can be used
-       to print only one or neither of these two listings.
-"
 option "print-base-dir" -
 #~~~~~~~~~~~~~~~~~~~~~~~~
 "whether to include the base-dir in the output"
@@ -184,6 +119,19 @@ details="
 "
 optional
 
+option "user-list-format" -
+#~~~~~~~~~~~~~~~~~~~~~~~~~~
+"How to format the user list"
+string typestr="<format>"
+default="%(size:r:5) %(files:r:5) %(dirname)\n"
+details="
+       pw_name: The user name
+       uid: The user id
+       files: The number of files
+       size: size of all files in that directory
+       dirname: The name of the directory
+"
+optional
 option "user-summary-format" -
 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 "How to format the user summary"