From b1f6874442c623aa6e8ceaada7ceb4d8826a5db5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 8 Mar 2013 09:28:36 +0530 Subject: [PATCH] usage info about using calibre-debug to run scripts --- src/calibre/debug.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/calibre/debug.py b/src/calibre/debug.py index 622ab41eb1..741b0adf1a 100644 --- a/src/calibre/debug.py +++ b/src/calibre/debug.py @@ -22,6 +22,12 @@ calibre GUI and the calibre viewer in debug mode. It also contains interfaces to various bits of calibre that do not have dedicated command line tools, such as font subsetting, tweaking ebooks and so on. + +You can also use %prog to run standalone scripts. To do that use it like this: + + %prog mysrcipt.py -- --option1 --option2 file1 file2 ... + +Everything after the -- is passed to the script. ''') parser.add_option('-c', '--command', help='Run python code.') parser.add_option('-e', '--exec-file', help='Run the python code in file.')