Last change
on this file since 69 was 68, checked in by Izuru Yakumo, 8 months ago |
Update inline documentation
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
File size:
747 bytes
|
Rev | Line | |
---|
[66] | 1 | open Cmdliner
|
---|
[3] | 2 |
|
---|
[66] | 3 | let subs = [
|
---|
[68] | 4 | Authors.cmd;
|
---|
| 5 | Convert.cmd;
|
---|
| 6 | Edit.cmd;
|
---|
| 7 | File.cmd;
|
---|
| 8 | Index.cmd;
|
---|
| 9 | Last.cmd;
|
---|
| 10 | Listing.cmd;
|
---|
| 11 | New.cmd;
|
---|
| 12 | Peers.cmd;
|
---|
| 13 | Pull.cmd;
|
---|
| 14 | Recent.cmd;
|
---|
| 15 | Topics.cmd;
|
---|
| 16 | Unfile.cmd;
|
---|
[66] | 17 | ]
|
---|
| 18 |
|
---|
| 19 | let default_cmd = Term.(ret (const (`Help (`Pager, None))))
|
---|
| 20 |
|
---|
| 21 | let txt =
|
---|
| 22 | let doc = "Discover, collect and exchange texts" in
|
---|
| 23 | let man = [
|
---|
[68] | 24 | `S Manpage.s_authors;
|
---|
| 25 | `P "orbifx <mailto:fox@orbitalfox.eu>";
|
---|
| 26 | `P "Izuru Yakumo <mailto:yakumo.izuru@chaotic.ninja>";
|
---|
| 27 | `S Manpage.s_bugs;
|
---|
| 28 | `P "Please report them at <mailto:logarion-dev@chaotic.ninja>"; ]
|
---|
[66] | 29 | in
|
---|
| 30 | Cmd.group (Cmd.info "txt" ~version:"%%VERSION%%" ~doc ~man) ~default:default_cmd subs
|
---|
| 31 |
|
---|
| 32 | let main () = exit (Cmd.eval txt)
|
---|
| 33 | let () = main ()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.