[ABRT PATCH] abrt-cli: make status help message more precise

Jakub Filak jfilak at redhat.com
Thu May 23 13:30:05 UTC 2013


>From 'abrt-cli list --full' to either 'abrt-cli list --since XXXXX' or
'abrt-cli list' if 'abrt-cli status' was called with --since or not.

Related to #659

Signed-off-by: Jakub Filak <jfilak at redhat.com>
---
 src/cli/status.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/cli/status.c b/src/cli/status.c
index 7165498..a4bfc68 100644
--- a/src/cli/status.c
+++ b/src/cli/status.c
@@ -100,7 +100,11 @@ int cmd_status(int argc, const char **argv)
         if (opt_bare)
             printf("%u", problem_count);
         else
-            printf(_("ABRT has detected '%u' problem(s). (For more info run: $ abrt-cli list --full)\n"), problem_count);
+        {
+            char *list_arg = opt_since ? xasprintf(" --since %d", opt_since) : xstrdup("");
+            printf(_("ABRT has detected '%u' problem(s). (For more info run: $ abrt-cli list%s)\n"), problem_count, list_arg);
+            free(list_arg);
+        }
     }
 
     return 0;
-- 
1.8.1.4



More information about the Crash-catcher mailing list