summaryrefslogtreecommitdiff
path: root/panfry/cli.py
diff options
context:
space:
mode:
authorScott Bahling <sbahling@mudgum.net>2013-03-23 17:29:45 +0100
committerScott Bahling <sbahling@mudgum.net>2013-03-23 17:29:45 +0100
commitb517bd162198c9c2ef0f645e1722af84475be2ce (patch)
treebd3ac6809d0477880074ca5de088ef79e37cc05d /panfry/cli.py
parent0426fce3b39ebedf6b92bfe6b18aa08987b11ea2 (diff)
downloadpanfry-b517bd162198c9c2ef0f645e1722af84475be2ce.tar.gz
panfry-b517bd162198c9c2ef0f645e1722af84475be2ce.tar.xz
panfry-b517bd162198c9c2ef0f645e1722af84475be2ce.zip
Add panfry serve command and pandoc-options
Diffstat (limited to 'panfry/cli.py')
-rwxr-xr-xpanfry/cli.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/panfry/cli.py b/panfry/cli.py
index 3ec6151..6949474 100755
--- a/panfry/cli.py
+++ b/panfry/cli.py
@@ -97,6 +97,22 @@ Args:
default: False
help: 'Remove pub path and all contents before generating'
+ pandoc_options:
+ flags: [-O, --pandoc-options]
+ default: ''
+ help: |
+ Space delimited list of options to pass to Pandoc.
+ Options must be in the long format without the leading
+ double dash.
+
+ Example --pandoc-options="smart base-header-level=2"
+
+ port:
+ flags: [-P, --port]
+ default: 8080
+ help: 'HTTP port'
+
+
Parser:
help:
@@ -116,6 +132,13 @@ Subparsers:
- assets
- clean
- css
+ - pandoc_options
+
+ serve:
+ help: start simple http server in current directory
+ args:
+ - port
+ - pub_path
"""
config = yaml.load(cli_config)