OCAMLIFY(1)

✨ OCAMLIFY(1) ✨

User Commands · the one where your OCaml file gets ✨friends✨


πŸŽ€ NAME πŸŽ€

ocamlify β€” include files in OCaml code πŸ’–


🌸 DESCRIPTION 🌸

okay bestie, imagine this: you're writing OCaml and you want some other file to just... be inside it. That's the whole gig. πŸ’…

ocamlify v%%VERSION%% by Sylvain Le Gall 🫢

Create an OCaml file including other file. Fr fr, that's it, that's the plot.

Usage:

ocamlify [options] option-file
πŸ¦‹ heads up: the option file is a required argument, not a vibe. ocamlify [options] option-file β€” don't forget it.

πŸ’œ OPTIONS πŸ’œ

  • --var-string-list varname file β€” Include file as a list of string, each string representing a line (without trailing EOL character). So like, one string per line, and the EOL is NOT invited to the party πŸ™ˆ
  • --var-string varname file β€” Include file as a string. One whole string. All of it. Iconic. ✨
  • --output file β€” Output file, default to standard output. No file given? She just yells it into stdout, main character energy πŸ‘‘
  • --depends β€” Output file dependencies. Tell me who you depend on, bestie πŸ”₯
  • --target file β€” Define target of dependencies. Name the target, own the target ⭐
  • -help β€” Display this list of options. One dash. Yes, really. 😭
  • --help β€” Display this list of options. Two dashes, same list, equally helpful 🌈
πŸ’€ do NOT sleep on the difference between -help and --help β€” they're both listed separately in the original and they both just display the list of options. Cute. Consistent. Chaotic.

and that's the whole page, bestie πŸ“

this was ocamlify 0.1.0 from July 2025, and yes that's literally the version and the date, no cap 🧚 go include some files πŸ’–βœ¨

πŸ“¦ where this page comes from