Changed --print-default-header to --print-default-template.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1679 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
parent
732e6a1097
commit
0d8fc82a8c
3 changed files with 11 additions and 8 deletions
4
README
4
README
|
@ -310,6 +310,10 @@ For further documentation, see the `pandoc(1)` man page.
|
|||
repeatedly to include multiple files. They will be included in the
|
||||
order specified.
|
||||
|
||||
`-D` or `--print-default-template` *format*
|
||||
: prints the default template for an output *format*. (See `-t`
|
||||
for a list of possible *format*s.)
|
||||
|
||||
`-T` or `--title-prefix` *string*
|
||||
: includes *string* as a prefix at the beginning of the title that
|
||||
appears in the HTML header (but not in the title as it appears at
|
||||
|
|
|
@ -186,10 +186,9 @@ to Pandoc. Or use `html2markdown`(1), a wrapper around `pandoc`.
|
|||
default header, which can be printed by using the `-D` option).
|
||||
Implies `-s`.
|
||||
|
||||
-D *FORMAT*, \--print-default-header=*FORMAT*
|
||||
: Print the default header for *FORMAT* (`html`, `s5`, `latex`,
|
||||
`context`, `docbook`, `man`, `markdown`, `opendocument`,
|
||||
`rst`, `rtf`).
|
||||
-D *FORMAT*, \--print-default-template=*FORMAT*
|
||||
: Print the default template for an output *FORMAT*. (See `-t`
|
||||
for a list of possible *FORMAT*s.)
|
||||
|
||||
-T *STRING*, \--title-prefix=*STRING*
|
||||
: Specify *STRING* as a prefix to the HTML window title.
|
||||
|
|
|
@ -387,16 +387,16 @@ options =
|
|||
"STRING")
|
||||
"" -- "String to prefix to HTML window title"
|
||||
|
||||
, Option "D" ["print-default-header"]
|
||||
, Option "D" ["print-default-template"]
|
||||
(ReqArg
|
||||
(\arg _ -> do
|
||||
let header = case (lookup arg writers) of
|
||||
let template = case (lookup arg writers) of
|
||||
Just (_, h) -> h
|
||||
Nothing -> error ("Unknown reader: " ++ arg)
|
||||
hPutStr stdout header
|
||||
hPutStr stdout template
|
||||
exitWith ExitSuccess)
|
||||
"FORMAT")
|
||||
"" -- "Print default header for FORMAT"
|
||||
"" -- "Print default template for FORMAT"
|
||||
#ifdef _CITEPROC
|
||||
, Option "" ["biblio"]
|
||||
(ReqArg
|
||||
|
|
Loading…
Add table
Reference in a new issue