comparison sidinfo.c @ 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 9924d4518932
children f73270cabde2
comparison
equal deleted inserted replaced
359:969f86b74bff 360:522c8a77ad54
1191 if (setSTILDBPath == NULL) 1191 if (setSTILDBPath == NULL)
1192 setSTILDBPath = sidutil_check_hvsc_file(setHVSCPath, SIDUTIL_STILDB_FILENAME, NULL); 1192 setSTILDBPath = sidutil_check_hvsc_file(setHVSCPath, SIDUTIL_STILDB_FILENAME, NULL);
1193 } 1193 }
1194 1194
1195 // Check if help is requested 1195 // Check if help is requested
1196 if (optShowHelp) 1196 if (optShowHelp || argc < 2)
1197 { 1197 {
1198 argShowHelp(); 1198 argShowHelp();
1199 goto exit; 1199 goto exit;
1200 } 1200 }
1201 1201