print version and command line args in debug mode

that makes it unnecessary to ask help-seeking users for it separately.
This commit is contained in:
Oswald Buddenhagen 2021-11-26 17:31:25 +01:00
parent c1eb3566b1
commit 05122b678d

View File

@ -696,6 +696,11 @@ main( int argc, char **argv )
if (DFlags & DEBUG_ANY) { if (DFlags & DEBUG_ANY) {
Verbosity = VERBOSE; 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 )) { } else if (Verbosity >= TERSE && isatty( 1 )) {
DFlags |= PROGRESS; DFlags |= PROGRESS;
} }