Mercurial > cgi-bin > hgweb.cgi > PassMan
comparison src/main/kotlin/name/blackcap/passman/ReadSubcommand.kt @ 25:131e39d96862
Fix erroneous help message in read subcommand.
author | David Barts <n5jrn@me.com> |
---|---|
date | Thu, 04 Jul 2024 09:49:36 -0700 |
parents | ea65ab890f66 |
children |
comparison
equal
deleted
inserted
replaced
24:2188b2f13326 | 25:131e39d96862 |
---|---|
13 } | 13 } |
14 private lateinit var commandLine: CommandLine | 14 private lateinit var commandLine: CommandLine |
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("c", CLIPBOARD, false, "Copy username and password into clipboard.") | 18 addOption("c", CLIPBOARD, false, "Copy password into clipboard.") |
19 addOption("h", HELP, false, "Print this help message.") | 19 addOption("h", HELP, false, "Print this help message.") |
20 addOption("l", LONG, false, "Long format listing.") | 20 addOption("l", LONG, false, "Long format listing.") |
21 } | 21 } |
22 try { | 22 try { |
23 commandLine = DefaultParser().parse(options, args) | 23 commandLine = DefaultParser().parse(options, args) |