changeset 8:290b0b2a584b

Fix bug.
author David Barts <n5jrn@me.com>
date Wed, 25 Aug 2021 08:33:59 -0700
parents 63eab373d348
children a56d3d3b5efd
files MakeWaypoints.kt
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MakeWaypoints.kt	Wed Aug 25 08:31:31 2021 -0700
+++ b/MakeWaypoints.kt	Wed Aug 25 08:33:59 2021 -0700
@@ -32,7 +32,7 @@
         }
         fileArg = 1
     }
-    if (args.size != 1) {
+    if (args.size != fileArg + 1) {
         System.err.println(syntaxError)
         System.exit(2)
     }