Changes to --version.

Print default user data directory.
Put language names in lowercase and omit 'alert' and 'alert_indent'.
This commit is contained in:
John MacFarlane 2013-02-07 19:58:28 -08:00
parent 7f4e1075be
commit ec5dc431de
2 changed files with 5 additions and 3 deletions

6
README
View file

@ -188,7 +188,7 @@ General options
`--data-dir=`*DIRECTORY*
: Specify the user data directory to search for pandoc data files.
If this option is not specified, the default user data directory
will be used:
will be used. This is
$HOME/.pandoc
@ -200,7 +200,9 @@ General options
C:\Users\USERNAME\AppData\Roaming\pandoc
in Windows 7. A `reference.odt`, `reference.docx`, `default.csl`,
in Windows 7. (You can find the default user data directory
on your system by looking at the output of `pandoc --version`.)
A `reference.odt`, `reference.docx`, `default.csl`,
`epub.css`, `templates`, `slidy`, `slideous`, or `s5` directory
placed in this directory will override pandoc's normal defaults.

View file

@ -707,7 +707,7 @@ options =
prg <- getProgName
defaultDatadir <- getAppUserDataDirectory "pandoc"
UTF8.hPutStrLn stdout (prg ++ " " ++ pandocVersion ++
compileInfo ++ "\nDefault data directory: " ++
compileInfo ++ "\nDefault user data directory: " ++
defaultDatadir ++ copyrightMessage)
exitWith ExitSuccess ))
"" -- "Print version"