Changeset 66 in code for trunk/cli/last.ml
- Timestamp:
- Aug 21, 2024, 1:37:05 AM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cli/last.ml
r65 r66 21 21 | Some (_, f) -> List.iter print_endline f 22 22 23 open Ocmd 24 let term = 25 let mine = Arg.(value & flag & info ["mine"] ~doc:"last text authored by me") in 26 Term.(const last $ mine), 27 Term.info "last" ~doc:"most recent text" 28 ~man:[ `S "DESCRIPTION"; `P "Print the filename of most recent text" ] 23 open Cmdliner 24 25 let mine = Arg.(value & flag & info ["mine"] ~doc: "Last text authored by me") 26 let last_t = Term.(const last $ mine) 27 28 let cmd = 29 let doc = "Most recent text" in 30 let man = [ 31 `S Manpage.s_description; 32 `P "Print the filename of most recent text" ] 33 in 34 let info = Cmd.info "last" ~version:"%%VERSION%%" ~doc ~man in 35 Cmd.v info last_t
Note:
See TracChangeset
for help on using the changeset viewer.