LABLGTK2(1)

πŸ“¦
version 2.18.14 Β· 2 versions
, in fedora 43

πŸŽ€ NAME πŸŽ€

lablgtk2 β€” bestie, this is the manual page for lablgtk2, version 2.18.14, and she is serving documentation πŸ’…βœ¨


✨ SYNOPSIS ✨

ocaml <options> <files>

That's the whole vibe: you run ocaml, you hand her some <options>, you hand her some <files>, and she goes off. Periodt πŸ¦‹


πŸ’– DESCRIPTION πŸ’–

okay so. the options. there are so many of them. do not panic, we're getting through all of them together, hand in hand 🫢

Options are:

  • -absname β€” show absolute filenames in error messages ✨
  • -no-absname β€” do not try to show absolute filenames in error messages (this is the default, so like, chill mode) πŸ™ˆ
  • -alert <list> β€” enable or disable alerts according to <list>, and the <list> grammar goes like this:
    • +<alertname> β€” enable alert <alertname> πŸ””
    • -<alertname> β€” disable alert <alertname>
    • ++<alertname> β€” treat <alertname> as a fatal error πŸ’€
    • --<alertname> β€” treat <alertname> as non-fatal
    • @<alertname> β€” enable <alertname> and treat it as a fatal error
    • also <alertname> can be 'all' to refer to all alert names πŸ‘‘ (yes, all of them, she's an overachiever)
  • -I <dir> β€” add <dir> to the list of include directories πŸ“
  • -H <dir> β€” add <dir> to the list of "hidden" include directories. (Like -I, but the program can not directly reference these dependencies) β€” sneaky, lowkey, we love her 🫣
  • -init <file> β€” load <file> instead of the default init file
  • -labels β€” use commuting label mode
  • -alias-deps β€” do record dependencies for module aliases
  • -no-alias-deps β€” do not record dependencies for module aliases
  • -app-funct β€” activate applicative functors
  • -no-app-funct β€” deactivate applicative functors
  • -noassert β€” do not compile assertion checks
  • -noinit β€” do not load any init file
  • -nolabels β€” ignore non-optional labels in types
  • -prompt β€” output prompts (default) πŸ’¬
  • -noprompt β€” suppress all prompts 🀐
  • -nopromptcont β€” suppress prompts for continuation lines of multi-line inputs
  • -nostdlib β€” do not add the default directory to the list of include directories
  • -nocwd β€” do not implicitly add the current directory to the load path
  • -nopervasives β€” (undocumented) πŸ«₯ literally no notes, she's mysterious
  • -open <module> β€” opens the module <module> before typing
  • -ppx <command> β€” pipe abstract syntax trees through preprocessor <command> 🚰
  • -keywords <version+list> β€” set keywords following the <version+list> spec:
    • -<version> β€” if present specifies the base set of keywords (if absent the current set of keywords is used)
    • -<list> β€” is a "+"-separated list of keywords to add to the base set of keywords.
  • -principal β€” check principality of type inference
  • -no-principal β€” do not check principality of type inference (default)
  • -rectypes β€” allow arbitrary recursive types πŸŒ€
  • -no-rectypes β€” do not allow arbitrary recursive types (default)
  • -safe-string β€” (default unconditionally since 5.0) β€” she said "I'm the default now" and meant it πŸ’…
  • -safer-matching β€” do not use type information to optimize pattern-matching
  • -short-paths β€” shorten paths in types
  • -stdin β€” read script from standard input
  • -strict-sequence β€” left-hand part of a sequence must have type unit
  • -no-strict-sequence β€” left-hand part of a sequence need not have type unit (default)
  • -strict-formats β€” reject invalid formats accepted by legacy implementations (default)
⚠️ Warning: Invalid formats may behave differently from previous OCaml versions, and will become always-rejected in future OCaml versions. You should always use this flag to detect invalid formats so you can fix them.
  • -no-strict-formats β€” accept invalid formats accepted by legacy implementations
🚨 Warning: Invalid formats may behave differently from previous OCaml versions, and will become always-rejected in future OCaml versions. You should never use this flag and instead fix invalid formats. β€” like, never never. I'm so serious bestie 😭
  • -unboxed-types β€” unannotated unboxable types will be unboxed
  • -no-unboxed-types β€” unannotated unboxable types will not be unboxed (default)
  • -unsafe β€” do not compile bounds checking on array and string access 😳 (yes, that's as spicy as it sounds)
  • -unsafe-string β€” (option not available) β€” she's retired, gone, not coming back πŸͺ¦
  • -version β€” print version and exit
  • --version β€” print version and exit
  • -no-version β€” do not print version at startup
  • -vnum β€” print version number and exit
  • -w <list> β€” enable or disable warnings according to <list>, and here's the grammar:
    • +<spec> β€” enable warnings in <spec>
    • -<spec> β€” disable warnings in <spec>
    • @<spec> β€” enable warnings in <spec> and treat them as errors πŸ’€
    • and <spec> can be:
      • <num> β€” a single warning number
      • <num1>..<num2> β€” a range of consecutive warning numbers
      • <letter> β€” a predefined set
    • the default setting is "+a-4-7-9-27-29-30-32..42-44-45-48-50-60-66..70-74" β€” yes copy it exactly, do not freestyle it, I'm begging πŸ™
  • -warn-error <list> β€” enable or disable error status for warnings according to <list>. See option -w for the syntax of <list>. Default setting is "-a"
  • -warn-help β€” show description of warning numbers πŸ“š
  • - <file> β€” treat <file> as a file name (even if it starts with `-') β€” protective queen behavior πŸ›‘οΈ
  • -color {auto|always|never} β€” enable or disable colors in compiler messages 🌈. The following settings are supported:
    • auto β€” use heuristics to enable colors only if supported
    • always β€” enable colors
    • never β€” disable colors
    • The default setting is 'auto', and the current heuristic checks that the TERM environment variable exists and is not empty or "dumb", and that isatty(stderr) holds.
    • If the option is not specified, these setting can alternatively be set through the OCAML_COLOR environment variable.
  • -error-style {contextual|short} β€” control the way error messages and warnings are printed πŸ“. The following settings are supported:
    • short β€” only print the error and its location
    • contextual β€” like "short", but also display the source code snippet corresponding to the location of the error
    • The default setting is 'contextual'.
    • If the option is not specified, these setting can alternatively be set through the OCAML_ERROR_STYLE environment variable.
  • -dno-unique-ids β€” (undocumented) πŸ«₯
  • -dunique-ids β€” (undocumented) πŸ«₯
  • -dno-locations β€” (undocumented) πŸ«₯
  • -dlocations β€” (undocumented) πŸ«₯
  • -dsource β€” (undocumented) πŸ«₯
  • -dparsetree β€” (undocumented) πŸ«₯
  • -dtypedtree β€” (undocumented) πŸ«₯
  • -dshape β€” (undocumented) πŸ«₯
  • -drawlambda β€” (undocumented) πŸ«₯
  • -dlambda β€” (undocumented) πŸ«₯
  • -dinstr β€” (undocumented) πŸ«₯
  • -args <file> β€” read additional newline-terminated command line arguments from <file> πŸ“„
  • -args0 <file> β€” read additional null character terminated command line arguments from <file> 🫧
  • -e <script> β€” evaluate given script
  • -help β€” display this list of options
  • --help β€” display this list of options

and that's the whole thing, bestie. every single flag, accounted for, no cap πŸ’œ

this was lablgtk2 2.18.14, stamped July 2025 β€” go forth and compile something iconic, you absolute main character πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from
  • fedora 43: ocaml-lablgtk 2.18.14-3.fc43 Β· LGPL-2.0-only WITH OCaml-LGPL-linking-exception AND LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms