From 05122b678d21b799f09958816e3123d270be3dbc Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 26 Nov 2021 17:31:25 +0100 Subject: [PATCH] print version and command line args in debug mode that makes it unnecessary to ask help-seeking users for it separately. --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.c b/src/main.c index f22a28e..55a7f65 100644 --- a/src/main.c +++ b/src/main.c @@ -696,6 +696,11 @@ main( int argc, char **argv ) if (DFlags & DEBUG_ANY) { Verbosity = VERBOSE; + + fputs( PACKAGE " " VERSION " called with:", stdout ); + for (op = 1; op < argc; op++) + printf( " '%s'", argv[op] ); + puts( "" ); } else if (Verbosity >= TERSE && isatty( 1 )) { DFlags |= PROGRESS; }