Skip to content

Commit

Permalink
Show version and help if no arguments given
Browse files Browse the repository at this point in the history
Closes #540
  • Loading branch information
Fish-Git committed Jan 24, 2023
1 parent 468b76c commit f7373b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit f7373b7

Please sign in to comment.