2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Handle no-argument invocation

apiclient is used to process confluent.info
This commit is contained in:
Jarrod Johnson 2020-08-17 13:40:00 -04:00
parent 53363905dd
commit 584f6dc458

View File

@ -90,6 +90,9 @@ if __name__ == '__main__':
json = False
if '-j' in sys.argv:
json = True
if len(sys.argv) == 1:
HTTPSClient()
sys.exit(0)
if sys.argv[-2] == '-o':
with open(sys.argv[3], 'wb') as outf:
reader = HTTPSClient(json=json).grab_url(