ask kitten: Output JSON when used standalone
This commit is contained in:
parent
0a1b399447
commit
5b4e4f032d
@ -527,4 +527,5 @@ def handle_result(args: List[str], data: Response, target_window_id: int, boss:
|
||||
if __name__ == '__main__':
|
||||
ans = main(sys.argv)
|
||||
if ans:
|
||||
print(ans)
|
||||
import json
|
||||
print(json.dumps(ans))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user