commit 987a506a9b508f220924e47840b8ab823cad72d6
parent 5473076bf8d3b4437f55878151cc4071f4e758c0
Author: William Casarin <jb55@jb55.com>
Date: Thu, 30 Jan 2025 18:45:19 -0800
ndb: enhance query options with more descriptive flags
- Updated the query option to replace short flags with more descriptive
ones:
- Replaced `-k` with `--kind`
- Replaced `-a` with `--author`
- Updated usage details to reflect these changes.
This improvement makes the command-line interface more intuitive by
using self-explanatory flags.
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ndb.c b/ndb.c
@@ -17,7 +17,7 @@ static int usage()
printf("usage: ndb [--skip-verification] [-d db_dir] <command>\n\n");
printf("commands\n\n");
printf(" stat\n");
- printf(" query [-k 42] [-k 1337] [--search term] [-l 42] [-e abcdef...] [-a abcdef... -a bcdef...]\n");
+ printf(" query [--kind 42] [--search term] [--limit 42] [-e abcdef...] [--author abcdef... -a bcdef...]\n");
printf(" profile <pubkey>\n");
printf(" print-search-keys\n");
printf(" print-kind-keys\n");