comparison src/main/kotlin/name/blackcap/passman/ImportSubcommand.kt @ 14:4dae7a15ee48

Fix bugs found in additional round of testing.
author David Barts <n5jrn@me.com>
date Tue, 31 Jan 2023 19:07:46 -0800
parents 302d224bbd57
children 7a74ae668665
comparison
equal deleted inserted replaced
13:302d224bbd57 14:4dae7a15ee48
63 commandLine = DefaultParser().parse(options, args) 63 commandLine = DefaultParser().parse(options, args)
64 } catch (e: ParseException) { 64 } catch (e: ParseException) {
65 die(e.message ?: "syntax error", 2) 65 die(e.message ?: "syntax error", 2)
66 } 66 }
67 if (commandLine.hasOption(ImportSubcommand.HELP)) { 67 if (commandLine.hasOption(ImportSubcommand.HELP)) {
68 HelpFormatter().printHelp("$SHORTNAME merge [options] csv_file", options) 68 HelpFormatter().printHelp("$SHORTNAME import [options] csv_file", options)
69 exitProcess(0) 69 exitProcess(0)
70 } 70 }
71 if (commandLine.args.isEmpty()) { 71 if (commandLine.args.isEmpty()) {
72 die("expecting other CSV file name", 2) 72 die("expecting other CSV file name", 2)
73 } 73 }