Skip to content

Instantly share code, notes, and snippets.

@pamolloy
Created September 19, 2014 00:51
Show Gist options
  • Save pamolloy/b147f0c05321c6bf0ffc to your computer and use it in GitHub Desktop.
Save pamolloy/b147f0c05321c6bf0ffc to your computer and use it in GitHub Desktop.
, Option "V" ["variable"]
(ReqArg
(\arg opt -> do
let (key,val) = case break (`elem` ":=") arg of
(k,_:v) -> (k,v)
(k,_) -> (k,"true")
return opt{ optVariables = (key,val) : optVariables opt })
"KEY[:VALUE]")
""
@pamolloy
Copy link
Author

There's currently no way to set complex values like this from the
command line.  You'd have to embed them in the source file as YAML, or
in a separate file that you include on the command line. 

See https://groups.google.com/d/topic/pandoc-discuss/r-t0hXKSMTM/discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment