mirror of https://github.com/jb55/nostril.git
Merge e1cfe8045a
into 8726ad3b15
This commit is contained in:
commit
e17d292626
|
@ -18,6 +18,7 @@ parser.add_argument('-g',
|
|||
metavar=('tag', 'value'),
|
||||
help="Generic tag query: `#<tag>: value`")
|
||||
parser.add_argument('-l', '--limit', type=int)
|
||||
parser.add_argument('-s', '--since', type=int)
|
||||
|
||||
def usage():
|
||||
parser.print_help()
|
||||
|
@ -56,5 +57,8 @@ if args.kinds is not None:
|
|||
kinds = args.kinds.split(",")
|
||||
filt["kinds"] = [a for a in map(lambda s: int(s), kinds)]
|
||||
|
||||
if args.since is not None:
|
||||
filt["since"] = args.since
|
||||
|
||||
q = json.dumps(["REQ","nostril-query",filt])
|
||||
print(q)
|
||||
|
|
Loading…
Reference in New Issue