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:
parent
53363905dd
commit
584f6dc458
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user