Mercurial > cgi-bin > hgweb.cgi > PassMan
diff src/main/kotlin/name/blackcap/passman/ListSubcommand.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 | 69526ae8c8de |
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/ListSubcommand.kt Tue Jul 02 11:27:39 2024 -0700 +++ b/src/main/kotlin/name/blackcap/passman/ListSubcommand.kt Tue Jul 02 17:34:52 2024 -0700 @@ -60,7 +60,7 @@ } if (commandLine.hasOption(HELP)) { HelpFormatter().printHelp("$SHORTNAME list [options]", options) - return + throw SubcommandException(status = 0) } if (commandLine.args.isNotEmpty()) { throw SubcommandException(message = "unexpected trailing arguments", status = 2)