Hoogle Search
Within LTS Haskell 24.69 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
optionContextSetDescription :: (HasCallStack, MonadIO m) => OptionContext -> Maybe Text -> m ()gi-glib GI.GLib.Structs.OptionContext Adds a string to be displayed in --help output after the list of options. This text often includes a bug reporting address. Note that the summary is translated (see optionContextSetTranslateFunc). Since: 2.12
optionContextSetHelpEnabled :: (HasCallStack, MonadIO m) => OptionContext -> Bool -> m ()gi-glib GI.GLib.Structs.OptionContext Enables or disables automatic generation of --help output. By default, optionContextParse recognizes --help, -h, -?, --help-all and --help-groupname and creates suitable output to stdout. Since: 2.6
optionContextSetIgnoreUnknownOptions :: (HasCallStack, MonadIO m) => OptionContext -> Bool -> m ()gi-glib GI.GLib.Structs.OptionContext Sets whether to ignore unknown options or not. If an argument is ignored, it is left in the argv array after parsing. By default, optionContextParse treats unknown options as error. This setting does not affect non-option arguments (i.e. arguments which don't start with a dash). But note that GOption cannot reliably determine whether a non-option belongs to a preceding unknown option. Since: 2.6
optionContextSetMainGroup :: (HasCallStack, MonadIO m) => OptionContext -> OptionGroup -> m ()gi-glib GI.GLib.Structs.OptionContext Sets a OptionGroup as main group of the context. This has the same effect as calling optionContextAddGroup, the only difference is that the options in the main group are treated differently when generating --help output. Since: 2.6
optionContextSetStrictPosix :: (HasCallStack, MonadIO m) => OptionContext -> Bool -> m ()gi-glib GI.GLib.Structs.OptionContext Sets strict POSIX mode. By default, this mode is disabled. In strict POSIX mode, the first non-argument parameter encountered (eg: filename) terminates argument processing. Remaining arguments are treated as non-options and are not attempted to be parsed. If strict POSIX mode is disabled then parsing is done in the GNU way where option arguments can be freely mixed with non-options. As an example, consider "ls foo -l". With GNU style parsing, this will list "foo" in long mode. In strict POSIX style, this will list the files named "foo" and "-l". It may be useful to force strict POSIX mode when creating "verb style" command line tools. For example, the "gsettings" command line tool supports the global option "--schemadir" as well as many subcommands ("get", "set", etc.) which each have their own set of arguments. Using strict POSIX mode will allow parsing the global options up to the verb name while leaving the remaining options to be parsed by the relevant subcommand (which can be determined by examining the verb name, which should be present in argv[1] after parsing). Since: 2.44
optionContextSetSummary :: (HasCallStack, MonadIO m) => OptionContext -> Maybe Text -> m ()gi-glib GI.GLib.Structs.OptionContext Adds a string to be displayed in --help output before the list of options. This is typically a summary of the program functionality. Note that the summary is translated (see optionContextSetTranslateFunc and optionContextSetTranslationDomain). Since: 2.12
-
gi-glib GI.GLib.Structs.OptionContext Sets the function which is used to translate the contexts user-visible strings, for --help output. If func is Nothing, strings are not translated. Note that option groups have their own translation functions, this function only affects the parameterString (see g_option_context_new()), the summary (see optionContextSetSummary) and the description (see optionContextSetDescription). If you are using gettext(), you only need to set the translation domain, see optionContextSetTranslationDomain. Since: 2.12
optionContextSetTranslationDomain :: (HasCallStack, MonadIO m) => OptionContext -> Text -> m ()gi-glib GI.GLib.Structs.OptionContext A convenience function to use gettext() for translating user-visible strings. Since: 2.12
-
gi-glib GI.GLib.Structs.OptionGroup Sets the function which is used to translate user-visible strings, for --help output. Different groups can use different GTranslateFuncs. If func is Nothing, strings are not translated. If you are using gettext(), you only need to set the translation domain, see optionGroupSetTranslationDomain. Since: 2.6
optionGroupSetTranslationDomain :: (HasCallStack, MonadIO m) => OptionGroup -> Text -> m ()gi-glib GI.GLib.Structs.OptionGroup A convenience function to use gettext() for translating user-visible strings. Since: 2.6