Class GpgSignHandler


  • public class GpgSignHandler
    extends org.kohsuke.args4j.spi.StringOptionHandler
    Special handler for the --gpg-sign option of the commit command. The following rules apply:
    • If no key is given, i.e. just --gpg-sign is passed, then it is the same as --gpg-sign=default
    Since:
    5.3
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String DEFAULT
      The value "default" which will be used when just the option is specified without any argument
      • Fields inherited from class org.kohsuke.args4j.spi.OptionHandler

        option, owner, setter
    • Constructor Summary

      Constructors 
      Constructor Description
      GpgSignHandler​(org.kohsuke.args4j.CmdLineParser parser, org.kohsuke.args4j.OptionDef option, org.kohsuke.args4j.spi.Setter<? super String> setter)
      Constructor for GpgSignHandler.
    • Field Detail

      • DEFAULT

        public static final String DEFAULT
        The value "default" which will be used when just the option is specified without any argument
        See Also:
        Constant Field Values
    • Constructor Detail

      • GpgSignHandler

        public GpgSignHandler​(org.kohsuke.args4j.CmdLineParser parser,
                              org.kohsuke.args4j.OptionDef option,
                              org.kohsuke.args4j.spi.Setter<? super String> setter)

        Constructor for GpgSignHandler.

        Parameters:
        parser - The parser to which this handler belongs.
        option - The annotation.
        setter - Object to be used for setting value.
    • Method Detail

      • parseArguments

        public int parseArguments​(org.kohsuke.args4j.spi.Parameters params)
                           throws org.kohsuke.args4j.CmdLineException
        Overrides:
        parseArguments in class org.kohsuke.args4j.spi.StringOptionHandler
        Throws:
        org.kohsuke.args4j.CmdLineException