commit 05122b678d21b799f09958816e3123d270be3dbc
parent c1eb3566b1ab1bc6a910f46bce8bfce7d67f3c30
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Fri, 26 Nov 2021 17:31:25 +0100
print version and command line args in debug mode
that makes it unnecessary to ask help-seeking users for it separately.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git 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;
}