end
local function argparse_for_db_filter(c)
- c:option("--predicate"):default("in")
- -- TODO: :choices({"in", "out"})
+ c:option("--predicate -p"):default("in")
+ :choices({"in", "out"})
+ :argname("P")
+ :description("Search predicate")
argparse_for_render(c)
end
c:flag("--verbose")
:description("Be chatty on stderr about the generated comand stream")
c:option("--escape")
- -- TODO: :choices("posix", "extended", "human")
+ :choices({"posix", "extended", "human"})
:default("posix")
:description("Control how special characters in paths are escaped")
c:flag("--no-human-escape")
c:argument("db2")
c:option("--flavor"):default("all")
:description("Database aspects to compare")
- -- TODO :choices("hash", "path", "both", "supers", "all")
+ :choices({"hash", "path", "both", "supers", "obsv", "all"})
c:option("--which"):default("symm")
:description("Direction of comparison")
- -- TODO :choices("sub", "super", "symm")
+ :choices({"sub", "super", "symm"})
c:flag("--no-headers")
:description("Suppress headers in output")
argparse_for_render(c)
:description("Escape input records, usually for shells")
c:argument("how"):default("posix")
:description("How to escape lines")
- -- TODO: :choices("digest", "posix", "extended", "human")
+ :choices({ "digest", "posix", "extended", "human" })
argparse_flag_nul(c)
argparse_flag_inul(c)
end,