From: Nathaniel Wesley Filardo Date: Tue, 27 Dec 2022 02:57:23 +0000 (+0000) Subject: Add some short option equivalents X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=99d0774f648970654dabbc7d3e99e54cb3b34c57;p=csdb Add some short option equivalents --- diff --git a/cdb b/cdb index f4565c6..25ca782 100755 --- a/cdb +++ b/cdb @@ -143,7 +143,7 @@ local function argparse_flag_nul(c) end local function argparse_for_render(c) - local f = c:option("--format") + local f = c:option("--format -f") :description("Output format specifier") :default("$e$h $f$z") local n = c:flag("--nul -0") @@ -696,10 +696,11 @@ mksubcmd(function(c) c:name("filterpath filp") :description("Filter digest tool lines against database by path") argparse_for_db_filter(c) - c:option("--in-paths") - :description("Input is a series of bare paths; optional arg is dummy digest") + c:option("--in-paths -P") :args(1) + :argname("dummy") :default("-"):defmode("a") + :description("Input is a series of bare paths; optional arg is dummy digest") argparse_flag_inul(c) argp_group("Query", c) end,