diff src/main/kotlin/name/blackcap/passman/DeleteSubcommand.kt @ 22:07406c4af4a5

More interactive mode stuff.
author David Barts <n5jrn@me.com>
date Tue, 02 Jul 2024 17:34:52 -0700
parents ea65ab890f66
children
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/DeleteSubcommand.kt	Tue Jul 02 11:27:39 2024 -0700
+++ b/src/main/kotlin/name/blackcap/passman/DeleteSubcommand.kt	Tue Jul 02 17:34:52 2024 -0700
@@ -1,13 +1,13 @@
 package name.blackcap.passman
 
 class DeleteSubcommand(): Subcommand() {
-    override fun run(args: Array<String>): {
+    override fun run(args: Array<String>) {
         if (args.isEmpty()) {
             throw SubcommandException(message = "expecting a site name", status = 2)
         }
         if (args[0] == "-h" || args[0].startsWith("--h")) {
             println("usage: passman delete name [...]")
-            return 0
+            return
         }
         val db = Database.default
         var errors = 0