From: Andre Noll <maan@systemlinux.org>
Date: Fri, 20 Jun 2008 15:21:10 +0000 (+0200)
Subject: Move --user-summary-sort to select.ggo.
X-Git-Tag: v0.0.3~8
X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=afc8a4212e37abd7467b21da543167285ae0c9c5;p=adu.git

Move --user-summary-sort to select.ggo.
---

diff --git a/adu.ggo b/adu.ggo
index 55e5c5a..dae8737 100644
--- a/adu.ggo
+++ b/adu.ggo
@@ -221,16 +221,3 @@ option "no-user-summary" -
 flag off
 dependon="select"
 
-
-option "user-summary-sort" -
-#~~~~~~~~~~~~~~~~~~~~~~~~~~~
-"how to sort the user-summary"
-enum typestr="col_spec"
-values="name","uid","dir_count","file_count","size"
-default="size"
-optional
-dependon="select"
-details="
-	It is enough to specify the first letter of the column specifier,
-	e.g. \"--user-summary-sort f\" sorts by file count.
-"
diff --git a/select.c b/select.c
index e095073..81403c6 100644
--- a/select.c
+++ b/select.c
@@ -438,7 +438,7 @@ static void print_user_summary(void)
 		printf("User summary "
 			"(pw_name/uid/dirs%s/files%s/size%s):\n",
 			count_unit_buf, count_unit_buf, size_unit_buf);
-	sort_hash_table(summary_comparators[conf.user_summary_sort_arg]);
+	sort_hash_table(summary_comparators[select_conf.user_summary_sort_arg]);
 	for_each_admissible_user(print_user_summary_line, NULL);
 }
 
diff --git a/select.ggo b/select.ggo
index a1de3a9..4fda7f6 100644
--- a/select.ggo
+++ b/select.ggo
@@ -95,3 +95,15 @@ details="
 	format.
 "
 
+
+option "user-summary-sort" -
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~
+"how to sort the user-summary"
+enum typestr="col_spec"
+values="name","uid","dir_count","file_count","size"
+default="size"
+optional
+details="
+	It is enough to specify the first letter of the column specifier,
+	e.g. \"--user-summary-sort f\" sorts by file count.
+"