Skip to content

Instantly share code, notes, and snippets.

@MisterDA
Created March 15, 2022 14:49
Show Gist options
  • Save MisterDA/30fcee30d07f72af12af6427000bf74e to your computer and use it in GitHub Desktop.
Save MisterDA/30fcee30d07f72af12af6427000bf74e to your computer and use it in GitHub Desktop.
all:
groff -m man -T utf8 noop-escaped.man | less -R
.lf 1 -
.\" Generated with ./noop.native --help=groff | preconv -e utf8 -D utf8
.\"
.mso an.tmac
.TH "NOOP" 1 "" "Noop 1.0" "Noop Manual"
.\" Disable hyphenation and ragged-right
.nh
.ad l
.SH NAME
.P
noop \N'45' UTF\N'45'8 test: \[u00ED]\[u00F6]\[u00FC]\[u00F3]\[u0151]\[u00FA]\[u0171]\[u00E9]\[u00E1]\[u0103]\[u00EE]\[u00E2]\[u0219]\[u021B] \[u00CD]\[u00DC]\[u00D3]\[u0150]\[u00DA]\[u0170]\[u00C9]\[u00C1]\[u0102]\[u00CE]\[u00C2]\[u0218]\[u021A]
.SH SYNOPSIS
.P
\fBnoop\fR [\fIOPTION\fR]\[u2026]
.SH COMMON OPTIONS
.TP 4
\fB\N'45'\N'45'help\fR[=\fIFMT\fR] (default=\fBauto\fR)
Show this help in format \fIFMT\fR\N'46' The value \fIFMT\fR must be one of \fBauto\fR, \fBpager\fR, \fBgroff\fR or \fBplain\fR\N'46' With \fBauto\fR, the format is \fBpager\fR or \fBplain\fR whenever the \fBTERM\fR env var is \fBdumb\fR or undefined\N'46'
.TP 4
\fB\N'45'\N'45'version\fR
Show version information\N'46'
.SH EXIT STATUS
.P
\fBnoop\fR exits with the following status:
.TP 4
0
on success\N'46'
.TP 4
123
on indiscriminate errors reported on standard error\N'46'
.TP 4
124
on command line parsing errors\N'46'
.TP 4
125
on unexpected internal errors (bugs)\N'46'
open Cmdliner
let noop () = ()
let noop_t = Term.(const noop $ const ())
let info =
let doc = "UTF-8 test: íöüóőúűéáăîâșț ÍÜÓŐÚŰÉÁĂÎÂȘȚ" in
Cmd.info "noop" ~version:"1.0" ~doc
let () = exit @@ Cmd.eval (Cmd.v info noop_t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment