mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fixed packet logging
This commit is contained in:
parent
324e8df283
commit
5a57a2c022
@ -367,8 +367,9 @@ def main(argv):
|
||||
"For help on a particular command: %prog command")
|
||||
parser.add_option("--log-packets", help="print out packet stream to stdout", dest="log_packets", action="store_true", default=False)
|
||||
parser.remove_option("-h")
|
||||
parser.disable_interspersed_args()
|
||||
parser.disable_interspersed_args() # Allow unrecognized options
|
||||
options, args = parser.parse_args()
|
||||
global LOG_PACKETS
|
||||
LOG_PACKETS = options.log_packets
|
||||
if len(args) < 1:
|
||||
parser.print_help()
|
||||
|
Loading…
x
Reference in New Issue
Block a user