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

diff --git a/adu.ggo b/adu.ggo
index dae8737..4d52f82 100644 (file)
--- a/adu.ggo
+++ b/adu.ggo
@@ -215,9 +215,3 @@ details="
        controls which of the these should be printed.
 "
 
-option "no-user-summary" -
-#~~~~~~~~~~~~~~~~~~~~~~~~~~~
-"do not print the user summary table"
-flag off
-dependon="select"
-
index 81403c6..801aba4 100644 (file)
--- a/select.c
+++ b/select.c
@@ -432,7 +432,7 @@ static int (*summary_comparators[])(const void *, const void *) = {
 
 static void print_user_summary(void)
 {
-       if (conf.no_user_summary_given)
+       if (select_conf.no_user_summary_given)
                return;
        if (!conf.no_headers_given)
                printf("User summary "
@@ -478,7 +478,7 @@ static int print_user_list(struct user_info *ui, __a_unused void *data)
                        return ret;
                printf("\n");
        }
-       if (ula == user_list_arg_none && !conf.no_user_summary_given) {
+       if (ula == user_list_arg_none && !select_conf.no_user_summary_given) {
                usi.count = select_conf.limit_arg;
                usi.ui = ui;
                usi.flags = USF_COMPUTE_SUMMARY;
index 4fda7f6..6538f52 100644 (file)
@@ -107,3 +107,8 @@ details="
        It is enough to specify the first letter of the column specifier,
        e.g. \"--user-summary-sort f\" sorts by file count.
 "
+
+option "no-user-summary" -
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~
+"do not print the user summary table"
+flag off