Move --user-summary-sort to select.ggo.
authorAndre Noll <maan@systemlinux.org>
Fri, 20 Jun 2008 15:21:10 +0000 (17:21 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 20 Jun 2008 15:21:10 +0000 (17:21 +0200)
adu.ggo
select.c
select.ggo

diff --git a/adu.ggo b/adu.ggo
index 55e5c5a..dae8737 100644 (file)
--- 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.
-"
index e095073..81403c6 100644 (file)
--- 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);
 }
 
index a1de3a9..4fda7f6 100644 (file)
@@ -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.
+"