Mercurial > cgi-bin > hgweb.cgi > PassMan
comparison 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 |
comparison
equal
deleted
inserted
replaced
21:ea65ab890f66 | 22:07406c4af4a5 |
---|---|
58 } catch (e: ParseException) { | 58 } catch (e: ParseException) { |
59 throw SubcommandException(message = e.message ?: "syntax error", cause = e, status = 2) | 59 throw SubcommandException(message = e.message ?: "syntax error", cause = e, status = 2) |
60 } | 60 } |
61 if (commandLine.hasOption(HELP)) { | 61 if (commandLine.hasOption(HELP)) { |
62 HelpFormatter().printHelp("$SHORTNAME list [options]", options) | 62 HelpFormatter().printHelp("$SHORTNAME list [options]", options) |
63 return | 63 throw SubcommandException(status = 0) |
64 } | 64 } |
65 if (commandLine.args.isNotEmpty()) { | 65 if (commandLine.args.isNotEmpty()) { |
66 throw SubcommandException(message = "unexpected trailing arguments", status = 2) | 66 throw SubcommandException(message = "unexpected trailing arguments", status = 2) |
67 } | 67 } |
68 | 68 |