From: Eugene Syromyatnikov Date: Wed, 24 Jul 2019 07:52:05 +0000 (+0200) Subject: strace.c: add "-k" to strace -h list of options X-Git-Tag: v5.3~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd56f0d5c807a25527d0adef63c9299bea3e422e;p=strace strace.c: add "-k" to strace -h list of options It is mentioned in the "Output format" section below, but not in the usage section. * strace.c (usage): Define K_OPT macro with a value that depends on ENABLE_STACKTRACE macro presence, use it in the help output, undefine it. --- diff --git a/strace.c b/strace.c index 5e8b0417..17b12dc4 100644 --- a/strace.c +++ b/strace.c @@ -229,8 +229,14 @@ print_version(void) static void usage(void) { +#ifdef ENABLE_STACKTRACE +# define K_OPT "k" +#else +# define K_OPT "" +#endif + printf("\ -usage: strace [-CdffhiqrtttTvVwxxy] [-I n] [-e expr]...\n\ +usage: strace [-Cdffhi" K_OPT "qrtttTvVwxxy] [-I n] [-e expr]...\n\ [-a column] [-o file] [-s strsize] [-P path]...\n\ -p pid... / [-D] [-E var=val]... [-u username] PROG [ARGS]\n\ or: strace -c[dfw] [-I n] [-e expr]... [-O overhead] [-S sortby]\n\ @@ -302,6 +308,8 @@ Miscellaneous:\n\ */ , DEFAULT_ACOLUMN, DEFAULT_STRLEN, DEFAULT_SORTBY); exit(0); + +#undef K_OPT } void ATTRIBUTE_NORETURN