From 7961d68807ac43fc99c0fdb4f4cdb0483e44398c Mon Sep 17 00:00:00 2001 From: mpeterv Date: Sat, 8 Mar 2014 16:16:04 +0400 Subject: [PATCH] Updated docs --- doc/index.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/index.html b/doc/index.html index e50a7d5..e1d89a3 100644 --- a/doc/index.html +++ b/doc/index.html @@ -746,6 +746,23 @@ Options: -h, --help Show this help message and exit. +

argname can be an array of placeholders.

+ +
parser:option "--pair"
+   :args(2)
+   :argname{"<key>", "<value>"}
+
+ +
$ lua script.lua --help
+
+ +
Usage: script.lua [--pair <key> <value>] [-h]
+
+Options: 
+   --pair <key> <value>
+   -h, --help            Show this help message and exit. 
+
+

Prohibiting overuse of options