From afc8a4212e37abd7467b21da543167285ae0c9c5 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 20 Jun 2008 17:21:10 +0200 Subject: [PATCH] Move --user-summary-sort to select.ggo. --- adu.ggo | 13 ------------- select.c | 2 +- select.ggo | 12 ++++++++++++ 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/adu.ggo b/adu.ggo index 55e5c5a..dae8737 100644 --- 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. -" diff --git a/select.c b/select.c index e095073..81403c6 100644 --- 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); } diff --git a/select.ggo b/select.ggo index a1de3a9..4fda7f6 100644 --- a/select.ggo +++ b/select.ggo @@ -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. +" -- 2.39.5