Refactor Code
This commit is contained in:
parent
b7df3d3239
commit
e444f19f2b
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
from argparse import ArgumentParser, SUPPRESS
|
from argparse import ArgumentParser, SUPPRESS
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
@ -122,7 +123,7 @@ def get_args():
|
|||||||
action="store_true", default=False,
|
action="store_true", default=False,
|
||||||
help="Enable JSON in the output")
|
help="Enable JSON in the output")
|
||||||
parser.add_argument("-p", "--pretty", dest="pretty_output",
|
parser.add_argument("-p", "--pretty", dest="pretty_output",
|
||||||
action="store_true",default=False,
|
action="store_true", default=False,
|
||||||
help="Print pretty and more human readable Json")
|
help="Print pretty and more human readable Json")
|
||||||
parser.add_argument("-h", "--help", default=SUPPRESS,
|
parser.add_argument("-h", "--help", default=SUPPRESS,
|
||||||
action='help',
|
action='help',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user