From cd32ca094a059c2de09d2b474fa0b1bd7d49be9d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 17 Jun 2014 11:39:13 +0530 Subject: [PATCH] Remove the need for -- when calling calibre-debug --diff --- src/calibre/debug.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/debug.py b/src/calibre/debug.py index fe0fe9e6de..15b00a7d61 100644 --- a/src/calibre/debug.py +++ b/src/calibre/debug.py @@ -79,9 +79,9 @@ Everything after the -- is passed to the script. 'Run a plugin that provides a command line interface. For example:\n' 'calibre-debug -r "Add Books" -- file1 --option1\n' 'Everything after the -- will be passed to the plugin as arguments.')) - parser.add_option('--diff', help=_( + parser.add_option('--diff', action='store_true', default=False, help=_( 'Run the calibre diff tool. For example:\n' - 'calibre-debug --diff -- file1 file2')) + 'calibre-debug --diff file1 file2')) return parser