source: code/trunk/cli/txt.ml@ 66

Last change on this file since 66 was 66, checked in by Izuru Yakumo, 10 months ago

Migrate the codebase to the latest revision of Cmdliner

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 753 bytes
Line 
1open Cmdliner
2
3let subs = [
4 Authors.cmd; (* Done *)
5 Convert.cmd; (* Done *)
6 Edit.cmd; (* Done *)
7 File.cmd; (* Done *)
8 Index.cmd; (* Done *)
9 Last.cmd; (* Done *)
10 Listing.cmd; (* Done *)
11 New.cmd; (* Done *)
12 Peers.cmd; (* Done *)
13 Pull.cmd; (* Done *)
14 Read.cmd; (* Done *)
15 Recent.cmd; (* Done *)
16 Topics.cmd; (* Done *)
17 Unfile.cmd; (* Done *)
18 ]
19
20let default_cmd = Term.(ret (const (`Help (`Pager, None))))
21
22let txt =
23 let doc = "Discover, collect and exchange texts" in
24 let man = [
25 `S "CONTACT";
26 `P "<mailto:logarion-dev@chaotic.ninja>"; ]
27 in
28 Cmd.group (Cmd.info "txt" ~version:"%%VERSION%%" ~doc ~man) ~default:default_cmd subs
29
30let main () = exit (Cmd.eval txt)
31let () = main ()
Note: See TracBrowser for help on using the repository browser.