mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-22 21:07:57 +01:00
Show endOfOptions delimiter in help
This commit is contained in:
parent
8c19f2f31d
commit
ce19207a92
2 changed files with 4 additions and 6 deletions
|
@ -6,10 +6,8 @@ package sop.cli.picocli.commands
|
|||
|
||||
import java.io.IOException
|
||||
import picocli.CommandLine.Command
|
||||
import picocli.CommandLine.Model.CommandSpec
|
||||
import picocli.CommandLine.Option
|
||||
import picocli.CommandLine.Parameters
|
||||
import picocli.CommandLine.Spec
|
||||
import sop.cli.picocli.SopCLI
|
||||
import sop.exception.SOPGPException.BadData
|
||||
import sop.exception.SOPGPException.UnsupportedOption
|
||||
|
@ -17,11 +15,10 @@ import sop.exception.SOPGPException.UnsupportedOption
|
|||
@Command(
|
||||
name = "certify-userid",
|
||||
resourceBundle = "msg_certify-userid",
|
||||
exitCodeOnInvalidInput = UnsupportedOption.EXIT_CODE)
|
||||
exitCodeOnInvalidInput = UnsupportedOption.EXIT_CODE,
|
||||
showEndOfOptionsDelimiterInUsageHelp = true)
|
||||
class CertifyUserIdCmd : AbstractSopCmd() {
|
||||
|
||||
@Spec var spec: CommandSpec? = null
|
||||
|
||||
@Option(names = ["--no-armor"], negatable = true) var armor = true
|
||||
|
||||
@Option(names = ["--userid"], required = true, arity = "1..*", paramLabel = "USERID")
|
||||
|
|
|
@ -15,7 +15,8 @@ import sop.util.HexUtil.Companion.bytesToHex
|
|||
@Command(
|
||||
name = "validate-userid",
|
||||
resourceBundle = "msg_validate-userid",
|
||||
exitCodeOnInvalidInput = SOPGPException.MissingArg.EXIT_CODE)
|
||||
exitCodeOnInvalidInput = SOPGPException.MissingArg.EXIT_CODE,
|
||||
showEndOfOptionsDelimiterInUsageHelp = true)
|
||||
class ValidateUserIdCmd : AbstractSopCmd() {
|
||||
|
||||
@Option(names = ["--addr-spec-only"]) var addrSpecOnly: Boolean = false
|
||||
|
|
Loading…
Reference in a new issue