PPX-BASE:(1)
π PPX-BASE:(1) β the manual page, but make it make sense π
okay bestie, so this is the manual page for ppx-base:, living in section 1 (aka User Commands) of the manual. pull up a chair, grab a strawberry π, and let's get into it.
β¨ NAME β¨
ppx-base: β manual page for ppx-base: unknown option '--version'.
like. yes. that's literally what it says. the manual page for ppx-base: is titled "manual page for ppx-base: unknown option '--version'." no cap. moving on π«Ά
πΈ DESCRIPTION πΈ
the whole vibe is:
ppx-base [extra_args] [<files>]
and here's every single flag, exactly as the page gives them, no skips, no shortcuts, periodt π
-as-ppxβ Run as a-ppxrewriter (must be the first argument)--as-ppxβ Same as-as-ppx-as-ppβ Shorthand for:-dump-ast-embed-errors--as-ppβ Same as-as-pp-o <filename>β Output file (use-for stdout)-β Read input from stdin-dump-astβ Dump the marshaled ast to the output file instead of pretty-printing it--dump-astβ Same as-dump-ast-dparsetreeβ Print the parsetree (same asocamlc -dparsetree)-embed-errorsβ Embed errors in the output AST (default: true when-as-pp, false otherwise)-nullβ Produce no output, except for errors-impl <file>β Treat the input as a.mlfile--impl <file>β Same as-impl-intf <file>β Treat the input as a.mlifile--intf <file>β Same as-intf-debug-attribute-dropβ Debug attribute dropping-print-transformationsβ Print linked-in code transformations, in the order they are applied-print-passesβ Print the actual passes over the whole AST in the order they are applied-ite-checkβ (no effect -- kept for compatibility)-pp <command>β Pipe sources through preprocessor<command>(incompatible with-as-ppx)-reconcileβ (WIP) Pretty print the output using a mix of the input source and the generated code-reconcile-with-commentsβ (WIP) same as-reconcilebut uses comments to enclose the generated code-no-colorβ Don't use colors when printing errors-diff-cmdβ Diff command when using code expectations (use-to disable diffing)-prettyβ Instruct code generators to improve the prettiness of the generated code-stylerβ Code styler-output-metadata FILEβ Where to store the output metadata-corrected-suffix SUFFIXβ Suffix to append to corrected files-keywords <version+list>β Set keywords according to theversion+listspecification. Allows using a set of keywords different from the one of the current compiler for backward compatibility.--keywords <version+list>β Same as-keywords--use-compiler-ppβ Force migrating the AST back to the compiler's version before printing it as source code using the compiler's Pprintast utilities.-loc-filename <string>β File name to use in locations-reserve-namespace <string>β Mark the given namespace as reserved-no-checkβ Disable checks (unsafe)-checkβ Enable checks-no-check-on-extensionsβ Disable checks on extension point only-check-on-extensionsβ Enable checks on extension point only-no-locations-checkβ Disable locations check only-locations-checkβ Enable locations check only-apply <names>β Apply these transformations in order (comma-separated list)-dont-apply <names>β Exclude these transformations-no-mergeβ Do not merge context free transformations (better for debugging rewriters). As a result, the context-free transformations are not all applied before all impl and intf.-cookie NAME=EXPRβ Set the cookieNAMEtoEXPR--cookieβ Same as-cookie-deriving-keep-w32 {impl|intf|both}β Do not try to disable warning 32 for the generated code-deriving-disable-w32-method {code|attribute}β How to disable warning 32 for the generated code-type-conv-keep-w32 {impl|intf|both}β Deprecated, use-deriving-keep-w32-type-conv-w32 {code|attribute}β Deprecated, use-deriving-disable-w32-method-deriving-keep-w60 {impl|intf|both}β Do not try to disable warning 60 for the generated code-unused-code-warnings {true|false|force}β Allow ppx derivers to enable unused code warnings (default: false)-unused-type-warnings {true|false|force}β Allow unused type warnings for types with[@@deriving ...](default: false)-helpβ Display this list of options--helpβ Display this list of options
ngl bestie, -no-check is marked unsafe. that's not me being dramatic, that's the page. proceed with main character energy but like... carefully. π
π¦ and then the page says the WHOLE thing AGAIN π¦
not me making this up β the original literally repeats the entire block. twice. iconic behaviour honestly. so here it is, again, verbatim, because we keep every detail around here π
ppx-base [extra_args] [<files>]
-as-ppxβ Run as a-ppxrewriter (must be the first argument)--as-ppxβ Same as-as-ppx-as-ppβ Shorthand for:-dump-ast-embed-errors--as-ppβ Same as-as-pp-o <filename>β Output file (use-for stdout)-β Read input from stdin-dump-astβ Dump the marshaled ast to the output file instead of pretty-printing it--dump-astβ Same as-dump-ast-dparsetreeβ Print the parsetree (same asocamlc -dparsetree)-embed-errorsβ Embed errors in the output AST (default: true when-as-pp, false otherwise)-nullβ Produce no output, except for errors-impl <file>β Treat the input as a.mlfile--impl <file>β Same as-impl-intf <file>β Treat the input as a.mlifile--intf <file>β Same as-intf-debug-attribute-dropβ Debug attribute dropping-print-transformationsβ Print linked-in code transformations, in the order they are applied-print-passesβ Print the actual passes over the whole AST in the order they are applied-ite-checkβ (no effect -- kept for compatibility)-pp <command>β Pipe sources through preprocessor<command>(incompatible with-as-ppx)-reconcileβ (WIP) Pretty print the output using a mix of the input source and the generated code-reconcile-with-commentsβ (WIP) same as-reconcilebut uses comments to enclose the generated code-no-colorβ Don't use colors when printing errors-diff-cmdβ Diff command when using code expectations (use-to disable diffing)-prettyβ Instruct code generators to improve the prettiness of the generated code-stylerβ Code styler-output-metadata FILEβ Where to store the output metadata-corrected-suffix SUFFIXβ Suffix to append to corrected files-keywords <version+list>β Set keywords according to theversion+listspecification. Allows using a set of keywords different from the one of the current compiler for backward compatibility.--keywords <version+list>β Same as-keywords--use-compiler-ppβ Force migrating the AST back to the compiler's version before printing it as source code using the compiler's Pprintast utilities.-loc-filename <string>β File name to use in locations-reserve-namespace <string>β Mark the given namespace as reserved-no-checkβ Disable checks (unsafe)-checkβ Enable checks-no-check-on-extensionsβ Disable checks on extension point only-check-on-extensionsβ Enable checks on extension point only-no-locations-checkβ Disable locations check only-locations-checkβ Enable locations check only-apply <names>β Apply these transformations in order (comma-separated list)-dont-apply <names>β Exclude these transformations-no-mergeβ Do not merge context free transformations (better for debugging rewriters). As a result, the context-free transformations are not all applied before all impl and intf.-cookie NAME=EXPRβ Set the cookieNAMEtoEXPR--cookieβ Same as-cookie-deriving-keep-w32 {impl|intf|both}β Do not try to disable warning 32 for the generated code-deriving-disable-w32-method {code|attribute}β How to disable warning 32 for the generated code-type-conv-keep-w32 {impl|intf|both}β Deprecated, use-deriving-keep-w32-type-conv-w32 {code|attribute}β Deprecated, use-deriving-disable-w32-method-deriving-keep-w60 {impl|intf|both}β Do not try to disable warning 60 for the generated code-unused-code-warnings {true|false|force}β Allow ppx derivers to enable unused code warnings (default: false)-unused-type-warnings {true|false|force}β Allow unused type warnings for types with[@@deriving ...](default: false)-helpβ Display this list of options--helpβ Display this list of options
π heads up bestie:-type-conv-keep-w32and-type-conv-w32are both marked Deprecated. they're still here, they still work, but the page is telling you to use-deriving-keep-w32and-deriving-disable-w32-methodinstead. noted. π
π SEE ALSO π
the full documentation for ppx-base: is maintained as a Texinfo manual. if the info and ppx-base: programs are properly installed at your site, then this command:
info ppx-base:
should give you access to the complete manual. slay. that's the whole cross-reference. β¨
and that's the page, bestie!! π¦ the footer tells us this is ppx-base: unknown option '--ver... and it's dated June 2025, stamped with PPX-BASE:(1) β so yeah, that's the version-and-date tea, straight from the bottom of the original. go forth and ppx, you absolute icon ππ
π¦ where this page comes from
- debian trixie: libppx-base-ocaml-dev 0.17.0-1+b8 Β· MIT
- ubuntu questing: libppx-base-ocaml-dev 0.17.0-1build6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms