Schnittstelle OptionFlags


public interface OptionFlags
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final int
    This flag marks the option as deprecated in the `--help`.
    static final int
    For options of the %G_OPTION_ARG_CALLBACK
    kind, this flag indicates that the argument should be passed to the
    callback in the GLib filename encoding rather than UTF-8.
    static final int
    The option doesn't appear in `--help` output.
    static final int
    The option appears in the main section of the
    `--help` output, even if it is defined in a group.
    static final int
    For options of the %G_OPTION_ARG_CALLBACK kind,
    this flag indicates that the callback does not take any argument
    (like a %G_OPTION_ARG_NONE option).
    static final int
    This flag turns off the automatic conflict
    resolution which prefixes long option names with `groupname-` if
    there is a conflict.
    static final int
    No flags.
    static final int
    For options of the %G_OPTION_ARG_CALLBACK
    kind, this flag indicates that the argument supply is optional.
    static final int
    For options of the %G_OPTION_ARG_NONE kind, this
    flag indicates that the sense of the option is reversed. i.e.
  • Felddetails

    • NONE

      static final int NONE
      No flags.
      Siehe auch:
    • HIDDEN

      static final int HIDDEN
      The option doesn't appear in `--help` output.
      Siehe auch:
    • IN_MAIN

      static final int IN_MAIN
      The option appears in the main section of the
      `--help` output, even if it is defined in a group.
      Siehe auch:
    • REVERSE

      static final int REVERSE
      For options of the %G_OPTION_ARG_NONE kind, this
      flag indicates that the sense of the option is reversed. i.e. %FALSE will
      be stored into the argument rather than %TRUE.
      Siehe auch:
    • NO_ARG

      static final int NO_ARG
      For options of the %G_OPTION_ARG_CALLBACK kind,
      this flag indicates that the callback does not take any argument
      (like a %G_OPTION_ARG_NONE option). Since 2.8
      Siehe auch:
    • FILENAME

      static final int FILENAME
      For options of the %G_OPTION_ARG_CALLBACK
      kind, this flag indicates that the argument should be passed to the
      callback in the GLib filename encoding rather than UTF-8. Since 2.8
      Siehe auch:
    • OPTIONAL_ARG

      static final int OPTIONAL_ARG
      For options of the %G_OPTION_ARG_CALLBACK
      kind, this flag indicates that the argument supply is optional.
      If no argument is given then data of %GOptionParseFunc will be
      set to NULL. Since 2.8
      Siehe auch:
    • NOALIAS

      static final int NOALIAS
      This flag turns off the automatic conflict
      resolution which prefixes long option names with `groupname-` if
      there is a conflict. This option should only be used in situations
      where aliasing is necessary to model some legacy commandline interface.
      It is not safe to use this option, unless all option groups are under
      your direct control. Since 2.8.
      Siehe auch:
    • DEPRECATED

      static final int DEPRECATED
      This flag marks the option as deprecated in the `--help`.

      You should update the description of the option to describe what
      the user should do in response to the deprecation, for instance:
      remove the option, or replace it with another one.
      Siehe auch: