commit 9199027424a85c383ad6827c73f2e2b353154ca9
parent 914e1fd11138f32bd9dbd241822bedfb68d8a381
Author: William Casarin <jb55@jb55.com>
Date: Sun, 5 Mar 2023 11:00:31 -0500
add replacable list param to nostril-query
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/nostril-query b/nostril-query
@@ -8,6 +8,7 @@ parser = argparse.ArgumentParser(prog = 'nostril-query', description = 'Construc
parser.add_argument('-a', '--authors')
parser.add_argument('-p', '--mentions')
parser.add_argument('-e', '--references')
+parser.add_argument('-d', '--parameter')
parser.add_argument('-t', '--hashtag')
parser.add_argument('-i', '--ids')
parser.add_argument('-k', '--kinds')
@@ -48,6 +49,9 @@ if args.mentions is not None:
if args.references is not None:
filt["#e"] = args.references.split(",")
+if args.parameter is not None:
+ filt["#d"] = args.parameter.split(",")
+
if args.kinds is not None:
kinds = args.kinds.split(",")
filt["kinds"] = [a for a in map(lambda s: int(s), kinds)]