Interface OptionArg


public interface OptionArg
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The option provides a callback (of type
    #GOptionArgFunc) to parse the extra argument.
    static final int
    The option takes a double argument.
    static final int
    The option takes a filename as argument, which will
    be in the GLib filename encoding rather than UTF-8.
    static final int
    The option takes a filename as argument,
    multiple uses of the option are collected into an array of strings.
    static final int
    The option takes an integer argument.
    static final int
    The option takes a 64-bit integer.
    static final int
    No extra argument.
    static final int
    The option takes a UTF-8 string argument.
    static final int
    The option takes a string argument, multiple
    uses of the option are collected into an array of strings.
  • Field Details

    • NONE

      static final int NONE
      No extra argument. This is useful for simple flags or booleans.
      See Also:
    • STRING

      static final int STRING
      The option takes a UTF-8 string argument.
      See Also:
    • INT

      static final int INT
      The option takes an integer argument.
      See Also:
    • CALLBACK

      static final int CALLBACK
      The option provides a callback (of type
      #GOptionArgFunc) to parse the extra argument.
      See Also:
    • FILENAME

      static final int FILENAME
      The option takes a filename as argument, which will
      be in the GLib filename encoding rather than UTF-8.
      See Also:
    • STRING_ARRAY

      static final int STRING_ARRAY
      The option takes a string argument, multiple
      uses of the option are collected into an array of strings.
      See Also:
    • FILENAME_ARRAY

      static final int FILENAME_ARRAY
      The option takes a filename as argument,
      multiple uses of the option are collected into an array of strings.
      See Also:
    • DOUBLE

      static final int DOUBLE
      The option takes a double argument. The argument
      can be formatted either for the user's locale or for the "C" locale.
      Since 2.12
      See Also:
    • INT64

      static final int INT64
      The option takes a 64-bit integer. Like
      %G_OPTION_ARG_INT but for larger numbers. The number can be in
      decimal base, or in hexadecimal (when prefixed with `0x`, for
      example, `0xffffffff`). Since 2.12
      See Also: