diff src/main/kotlin/name/blackcap/passman/Main.kt @ 3:eafa3779aef8

More bug fixes, quote strings in diagnostics.
author David Barts <n5jrn@me.com>
date Sun, 11 Sep 2022 20:36:06 -0700
parents a6cfdffcaa94
children 698c4a3d758d
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/Main.kt	Sun Sep 11 18:24:55 2022 -0700
+++ b/src/main/kotlin/name/blackcap/passman/Main.kt	Sun Sep 11 20:36:06 2022 -0700
@@ -21,7 +21,7 @@
 fun runSubcommand(name: String, args: Array<String>): Unit {
     val instance = getInstanceForClass(getClassForSubcommand(name))
     if (instance == null) {
-        die("$name - unknown subcommand", 2)
+        die("${see(name)} - unknown subcommand", 2)
     } else {
         instance.run(args)
     }