]> git.tuebingen.mpg.de Git - adu.git/commitdiff
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 dae8737a4036d5ee19fcc2f2fb39425bb47e5c7c..4d52f8263e5094a27cd5b026f3be8756b18b2014 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 81403c643d1edfbc5c330aec094cc2d63963a3c0..801aba4fe2bc9af8924c97c2a1a78c0810534bd0 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 4fda7f644d838b51e9bd23ffa5ab3fb7ebc9bc5c..6538f5299202584f39371a7857008dfb0eedc641 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