comparison src/main/kotlin/name/blackcap/passman/QuitSubcommand.kt @ 24:2188b2f13326

Make some minor tweaks to the help system.
author David Barts <n5jrn@me.com>
date Wed, 03 Jul 2024 17:14:22 -0700
parents
children
comparison
equal deleted inserted replaced
23:af86b8e0b88c 24:2188b2f13326
1 package name.blackcap.passman
2
3 // This command does nothing except print a help message if requested,
4 // so that "help quit" works. The actual quit logic is hard-coded in
5 // Main.kt (and needs to be, so that exit status is correct).
6 class QuitSubcommand(): Subcommand() {
7 override fun run(args: Array<String>) {
8 if (args.isNotEmpty() && (args[0] == "-h" || args[0].startsWith("--h"))) {
9 println("usage: passman quit [options]")
10 println(" -h,--help Print this help message.")
11 }
12 }
13 }