mirror of
https://github.com/jb55/nostril.git
synced 2024-11-21 16:29:06 -05:00
add replacable list param to nostril-query
This commit is contained in:
parent
914e1fd111
commit
9199027424
|
@ -8,6 +8,7 @@ parser = argparse.ArgumentParser(prog = 'nostril-query', description = 'Construc
|
||||||
parser.add_argument('-a', '--authors')
|
parser.add_argument('-a', '--authors')
|
||||||
parser.add_argument('-p', '--mentions')
|
parser.add_argument('-p', '--mentions')
|
||||||
parser.add_argument('-e', '--references')
|
parser.add_argument('-e', '--references')
|
||||||
|
parser.add_argument('-d', '--parameter')
|
||||||
parser.add_argument('-t', '--hashtag')
|
parser.add_argument('-t', '--hashtag')
|
||||||
parser.add_argument('-i', '--ids')
|
parser.add_argument('-i', '--ids')
|
||||||
parser.add_argument('-k', '--kinds')
|
parser.add_argument('-k', '--kinds')
|
||||||
|
@ -48,6 +49,9 @@ if args.mentions is not None:
|
||||||
if args.references is not None:
|
if args.references is not None:
|
||||||
filt["#e"] = args.references.split(",")
|
filt["#e"] = args.references.split(",")
|
||||||
|
|
||||||
|
if args.parameter is not None:
|
||||||
|
filt["#d"] = args.parameter.split(",")
|
||||||
|
|
||||||
if args.kinds is not None:
|
if args.kinds is not None:
|
||||||
kinds = args.kinds.split(",")
|
kinds = args.kinds.split(",")
|
||||||
filt["kinds"] = [a for a in map(lambda s: int(s), kinds)]
|
filt["kinds"] = [a for a in map(lambda s: int(s), kinds)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user