From f7373b7c2ddd29879fbf2992fcd54bae1794fb55 Mon Sep 17 00:00:00 2001 From: "Fish (David B. Trout)" Date: Tue, 24 Jan 2023 12:01:04 -0800 Subject: [PATCH] Show version and help if no arguments given Closes #540 --- impl.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/impl.c b/impl.c index d8dd88e1d..afac6604a 100644 --- a/impl.c +++ b/impl.c @@ -835,6 +835,14 @@ int rc; init_progname( argc, argv ); init_sysblk_version_str_arrays( NULL ); + if (argc < 2) + { + display_version( stdout, 0, NULL ); + arghelp(); + WRMSG( HHC02343, "S", 1 ); + return 1; + } + /* Initialize SETMODE and set user authority */ SETMODE( INIT );