Mercurial > cgi-bin > hgweb.cgi > PassMan
diff src/main/kotlin/name/blackcap/passman/ListSubcommand.kt @ 9:72619175004e
Fix issues found in testing.
author | David Barts <n5jrn@me.com> |
---|---|
date | Sat, 01 Oct 2022 09:57:23 -0700 |
parents | 698c4a3d758d |
children | ea65ab890f66 |
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/ListSubcommand.kt Fri Sep 23 20:59:52 2022 -0700 +++ b/src/main/kotlin/name/blackcap/passman/ListSubcommand.kt Sat Oct 01 09:57:23 2022 -0700 @@ -60,11 +60,11 @@ die(e.message ?: "syntax error", 2) } if (commandLine.hasOption(HELP)) { - HelpFormatter().printHelp("$SHORTNAME list", options) + HelpFormatter().printHelp("$SHORTNAME list [options]", options) exitProcess(0) } if (commandLine.args.isNotEmpty()) { - error("unexpected trailing arguments") + die("unexpected trailing arguments", 2) } STRING_OPTIONS.forEach {