comparison src/main/kotlin/name/blackcap/passman/ReadSubcommand.kt @ 11:c69665ff37d0

Add merge subcommand (untested).
author David Barts <n5jrn@me.com>
date Sat, 21 Jan 2023 15:39:42 -0800
parents 72619175004e
children a38a2a1036c3
comparison
equal deleted inserted replaced
10:cbe4c797c9a6 11:c69665ff37d0
24 commandLine = DefaultParser().parse(options, args) 24 commandLine = DefaultParser().parse(options, args)
25 } catch (e: ParseException) { 25 } catch (e: ParseException) {
26 die(e.message ?: "syntax error", 2) 26 die(e.message ?: "syntax error", 2)
27 } 27 }
28 if (commandLine.hasOption(HELP)) { 28 if (commandLine.hasOption(HELP)) {
29 HelpFormatter().printHelp("$SHORTNAME read", options) 29 HelpFormatter().printHelp("$SHORTNAME read [options] name", options)
30 exitProcess(0) 30 exitProcess(0)
31 } 31 }
32 if (commandLine.args.isEmpty()) { 32 if (commandLine.args.isEmpty()) {
33 die("expecting site name", 2) 33 die("expecting site name", 2)
34 } 34 }