From a906cbb84a2924f86f63d7b6c5678a1a931a8f5d Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Thu, 19 Jan 2017 22:06:41 +0100 Subject: [PATCH] update cmdline --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index f839992..09d2ec9 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,14 @@ See https://www.dokuwiki.org/wiki:syntax **How do I run this thing?** +##### Running it from command line + +Just use the main python class. It uses `argparse` - only provide one argument: the directory you want to parse: + +```python main.py --dir='some_dokuwiki_root_dir'``` + +##### Including it into your python project: + Main wiring in `DokuWikiToHugo` - see the tests for an elaborate example. ```python