comparison src/main/kotlin/name/blackcap/passman/CreateSubcommand.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
comparison
equal deleted inserted replaced
21:ea65ab890f66 22:07406c4af4a5
10 const val SYMBOLS = "symbols" 10 const val SYMBOLS = "symbols"
11 const val VERBOSE = "verbose" 11 const val VERBOSE = "verbose"
12 } 12 }
13 private lateinit var commandLine: CommandLine 13 private lateinit var commandLine: CommandLine
14 14
15 override fun run(args: Array<String>): { 15 override fun run(args: Array<String>) {
16 val options = Options().apply { 16 val options = Options().apply {
17 addOption("g", GENERATE, false, "Use password generator.") 17 addOption("g", GENERATE, false, "Use password generator.")
18 addOption("h", HELP, false, "Print this help message.") 18 addOption("h", HELP, false, "Print this help message.")
19 addOption("l", LENGTH, true, "Length of generated password (default $DEFAULT_GENERATED_LENGTH).") 19 addOption("l", LENGTH, true, "Length of generated password (default $DEFAULT_GENERATED_LENGTH).")
20 addOption("s", SYMBOLS, false, "Use symbol characters in generated password.") 20 addOption("s", SYMBOLS, false, "Use symbol characters in generated password.")