Directory parameter for listing, defaults to txtdir

git-svn-id: file:///srv/svn/repo/kosuzu/trunk@23 eb64cd80-c68d-6f47-b6a3-0ada418499da
This commit is contained in:
fox
2022-11-06 11:44:56 +00:00
parent 4c7ed95a32
commit d86b575d97
2 changed files with 14 additions and 8 deletions

View File

@@ -13,7 +13,9 @@ let term =
~docv:"comma-separated names" ~doc:"texts by authors") in
let topics = Arg.(value & opt (some string) None & info ["topics"]
~docv:"comma-separated topics" ~doc:"texts with topics") in
Term.(const Listing.listing $ recurse $ (const true) $ reverse $ number $ paths $ authed $ topics),
let dir = Arg.(value & pos 0 string "" & info []
~docv:"directory to index") in
Term.(const Listing.listing $ recurse $ (const true) $ reverse $ number $ paths $ authed $ topics $ dir),
Term.info "recent" ~doc:"list recent texts" ~man:[ `S "DESCRIPTION";
`P "List header information of most recent texts. If -R is used, list header
information for texts found in subdirectories too, along with their filepaths" ]