Mercurial > cgi-bin > hgweb.cgi > PassMan
comparison 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 |
comparison
equal
deleted
inserted
replaced
2:3c792ad36b3d | 3:eafa3779aef8 |
---|---|
19 } | 19 } |
20 | 20 |
21 fun runSubcommand(name: String, args: Array<String>): Unit { | 21 fun runSubcommand(name: String, args: Array<String>): Unit { |
22 val instance = getInstanceForClass(getClassForSubcommand(name)) | 22 val instance = getInstanceForClass(getClassForSubcommand(name)) |
23 if (instance == null) { | 23 if (instance == null) { |
24 die("$name - unknown subcommand", 2) | 24 die("${see(name)} - unknown subcommand", 2) |
25 } else { | 25 } else { |
26 instance.run(args) | 26 instance.run(args) |
27 } | 27 } |
28 } | 28 } |
29 | 29 |