]> git.tuebingen.mpg.de Git - adu.git/commitdiff
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 55e5c5aaeb7c4e63de6342c9257cb2e72e91ed7b..dae8737a4036d5ee19fcc2f2fb39425bb47e5c7c 100644 (file)
--- a/adu.ggo
+++ b/adu.ggo
@@ -221,16 +221,3 @@ option "no-user-summary" -
 flag off
 dependon="select"
 
 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 e0950739e029c2148efb2111ff809b9402ccf051..81403c643d1edfbc5c330aec094cc2d63963a3c0 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);
                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);
 }
 
        for_each_admissible_user(print_user_summary_line, NULL);
 }
 
index a1de3a910d7cb6dc045d76011417861a3c02a128..4fda7f644d838b51e9bd23ffa5ab3fb7ebc9bc5c 100644 (file)
@@ -95,3 +95,15 @@ details="
        format.
 "
 
        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.
+"