From 528ba1b02ff46c47cd53dc69d8a8d8f5e63e2417 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Thu, 12 Apr 2018 14:17:45 +0300 Subject: [PATCH] Update README.md [ci skip] Ref #13. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c5c0d5..be9aade 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,10 @@ parser:option("-o --output", "Output file.", "a.out") parser:option("-I --include", "Include locations."):count("*") local args = parser:parse() -print(args) -- Assuming print is patched to handle tables nicely. ``` +`args` contents depending on command line arguments: + ```bash $ lua script.lua foo ``` @@ -46,6 +47,8 @@ $ lua script.lua foo -I/usr/local/include -Isrc -o bar } ``` +Error messages depending on command line arguments: + ```bash $ lua script.lua foo bar ```