diff src/main/kotlin/name/blackcap/passman/Main.kt @ 24:2188b2f13326

Make some minor tweaks to the help system.
author David Barts <n5jrn@me.com>
date Wed, 03 Jul 2024 17:14:22 -0700
parents af86b8e0b88c
children 3a3067ba673b
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/Main.kt	Tue Jul 02 18:18:29 2024 -0700
+++ b/src/main/kotlin/name/blackcap/passman/Main.kt	Wed Jul 03 17:14:22 2024 -0700
@@ -9,7 +9,7 @@
 import kotlin.system.exitProcess
 
 fun main(args: Array<String>) {
-    val NOPASSWORD = setOf<String>("help")
+    val NOPASSWORD = setOf<String>("help", "quit")
     if (args.isEmpty()) {
         openDatabase()
         runInteractive()
@@ -48,6 +48,7 @@
     val DISALLOWED = setOf<String>("password")
     val QUIT = setOf<String>("exit", "quit")
     var lastStatus = 0
+    println("This is PassMan interactive mode. Type help for help.")
     while (true) {
         val rawLine = System.console()?.readLine("passman> ")
         if (rawLine == null) {