From 7895d7c6df4d9bbf1d53cfefe498b0573ebe40ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Jare=C5=A1?= Date: Tue, 8 Jan 2019 15:24:19 +0100 Subject: [PATCH 1/2] Make help explicit: -d dumps stacks (once) and exits --- src/prober.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/prober.cc b/src/prober.cc index a691c83..b9c7957 100644 --- a/src/prober.cc +++ b/src/prober.cc @@ -48,9 +48,10 @@ static const char usage_str[] = "Common Options:\n" #ifdef ENABLE_THREADS " --threads Enable multi-threading support\n" - " -d, --dump Dump stacks from all threads (implies --threads)\n" + " -d, --dump Dump stacks from all threads (implies " + "--threads) and exit\n" #else - " -d, --dump Dump the current interpreter stack\n" + " -d, --dump Dump the current interpreter stack and exit\n" #endif " -h, --help Show help\n" " -n, --no-line-numbers Do not append line numbers to function names\n" From 763130095a53dfa173666d844dbc0cd287d43c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Jare=C5=A1?= Date: Tue, 8 Jan 2019 15:24:25 +0100 Subject: [PATCH 2/2] Improve help: The shorthand for --threads is -L This was in the help but was removed in commit cf7f90471195371a86f. --- src/prober.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prober.cc b/src/prober.cc index b9c7957..3fd70de 100644 --- a/src/prober.cc +++ b/src/prober.cc @@ -47,7 +47,7 @@ static const char usage_str[] = "\n" "Common Options:\n" #ifdef ENABLE_THREADS - " --threads Enable multi-threading support\n" + " -L, --threads Enable multi-threading support\n" " -d, --dump Dump stacks from all threads (implies " "--threads) and exit\n" #else