diff tools/ppl.c @ 2441:275374725598

Show help when no arguments.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 29 Feb 2020 12:32:08 +0200
parents 69a5af2eb1ea
children 0ab24caf7fdf
line wrap: on
line diff
--- a/tools/ppl.c	Wed Feb 26 18:15:17 2020 +0200
+++ b/tools/ppl.c	Sat Feb 29 12:32:08 2020 +0200
@@ -567,9 +567,9 @@
         exit(1);
 
     // Open the files
-    if (optFilename == NULL)
+    if (optFilename == NULL || argc < 2)
     {
-        dmErrorMsg("No filename specified.\n");
+        argShowHelp();
         return 1;
     }