Mercurial > cgi-bin > hgweb.cgi > PassMan
comparison src/main/kotlin/name/blackcap/passman/CreateSubcommand.kt @ 13:302d224bbd57
Improve help messages and csv error reportage.
author | David Barts <n5jrn@me.com> |
---|---|
date | Tue, 24 Jan 2023 20:13:13 -0800 |
parents | cbe4c797c9a6 |
children | ea65ab890f66 |
comparison
equal
deleted
inserted
replaced
12:a38a2a1036c3 | 13:302d224bbd57 |
---|---|
15 | 15 |
16 override fun run(args: Array<String>) { | 16 override fun run(args: Array<String>) { |
17 val options = Options().apply { | 17 val options = Options().apply { |
18 addOption("g", GENERATE, false, "Use password generator.") | 18 addOption("g", GENERATE, false, "Use password generator.") |
19 addOption("h", HELP, false, "Print this help message.") | 19 addOption("h", HELP, false, "Print this help message.") |
20 addOption("l", LENGTH, true, "Length of generated password.") | 20 addOption("l", LENGTH, true, "Length of generated password (default $DEFAULT_GENERATED_LENGTH).") |
21 addOption("s", SYMBOLS, false, "Use symbol characters in generated password.") | 21 addOption("s", SYMBOLS, false, "Use symbol characters in generated password.") |
22 addOption("v", VERBOSE, false, "Print the generated password.") | 22 addOption("v", VERBOSE, false, "Print the generated password.") |
23 } | 23 } |
24 try { | 24 try { |
25 commandLine = DefaultParser().parse(options, args) | 25 commandLine = DefaultParser().parse(options, args) |