changeset 360:522c8a77ad54

If no arguments given, show help anyway.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 29 Feb 2020 12:29:43 +0200
parents 969f86b74bff
children 5711c23e40cc
files sidinfo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sidinfo.c	Sat Feb 29 12:20:03 2020 +0200
+++ b/sidinfo.c	Sat Feb 29 12:29:43 2020 +0200
@@ -1193,7 +1193,7 @@
     }
 
     // Check if help is requested
-    if (optShowHelp)
+    if (optShowHelp || argc < 2)
     {
         argShowHelp();
         goto exit;