File: test_man_utf8.ml

package info (click to toggle)
cmdliner 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 512 kB
  • sloc: ml: 3,659; makefile: 59
file content (9 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
open Cmdliner

let nop () = print_endline "It's the manual that is of interest."

let test_pos =
  let doc = "UTF-8 test: \u{1F42B} íöüóőúűéáăîâșț ÍÜÓŐÚŰÉÁĂÎÂȘȚ 雙峰駱駝" in
  Cmd.v (Cmd.info "test_pos" ~doc) Term.(const nop $ const ())

let () = exit (Cmd.eval test_pos)