Package picocli

Class CommandLine.NoDefaultProvider

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NoDefaultProvider()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String defaultValue​(CommandLine.Model.ArgSpec argSpec)
      Returns the default value for an option or positional parameter or null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoDefaultProvider

        private NoDefaultProvider()
    • Method Detail

      • defaultValue

        public java.lang.String defaultValue​(CommandLine.Model.ArgSpec argSpec)
        Description copied from interface: CommandLine.IDefaultValueProvider
        Returns the default value for an option or positional parameter or null. The returned value is converted to the type of the option/positional parameter via the same type converter used when populating this option/positional parameter from a command line argument.
        Specified by:
        defaultValue in interface CommandLine.IDefaultValueProvider
        Parameters:
        argSpec - the option or positional parameter, never null
        Returns:
        the default value for the option or positional parameter, or null if this provider has no default value for the specified option or positional parameter