Fix print_last
This commit is contained in:
parent
0f2336e398
commit
95b88a6768
@ -42,7 +42,7 @@ let list_term =
|
||||
Term.(const text_list $ time $ reverse $ field $ authors $ keywords $ topics),
|
||||
Term.info "list" ~doc:"list texts" ~man:[ `S "DESCRIPTION"; `P "List texts" ]
|
||||
|
||||
let print_last =
|
||||
let print_last () =
|
||||
match A.of_path (Sys.getcwd ()) with
|
||||
| Error msg -> prerr_endline msg
|
||||
| Ok archive ->
|
||||
@ -50,7 +50,7 @@ let print_last =
|
||||
print_endline @@ A.fold ~order:A.oldest last "" archive
|
||||
|
||||
let last_term =
|
||||
Term.(const print_last),
|
||||
Term.(const print_last $ const ()),
|
||||
Term.info "last" ~doc:"most recent test" ~man:[ `S "DESCRIPTION"; `P "Print the filename of most recent text" ]
|
||||
|
||||
let split_filetypes files =
|
||||
|
Loading…
x
Reference in New Issue
Block a user