From 427577fc31faa894761ebfcb4352dcc4a8aef252 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 20 Jun 2008 17:23:20 +0200 Subject: [PATCH] Move --no-user-summary to select.ggo. --- adu.ggo | 6 ------ select.c | 4 ++-- select.ggo | 5 +++++ 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/adu.ggo b/adu.ggo index dae8737..4d52f82 100644 --- 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" - diff --git a/select.c b/select.c index 81403c6..801aba4 100644 --- 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; diff --git a/select.ggo b/select.ggo index 4fda7f6..6538f52 100644 --- a/select.ggo +++ b/select.ggo @@ -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 -- 2.30.2