From 5768268e2f072e3d13022cbacd89f47e33efa0dc Mon Sep 17 00:00:00 2001 From: Adi Shavit Date: Sun, 10 Sep 2017 11:18:08 +0300 Subject: [PATCH] Update README. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3be899e..42ab5e2 100644 --- a/README.md +++ b/README.md @@ -254,8 +254,8 @@ if (!(cmdl("scale") >> scale_factor)) Use the `.str()` method to get the parameter value as a string: e.g. `cmdl("name").str();` ### More Methods -- Use `parser::add_param()` to *optionally* pre-register a parameter name when in `PREFER_FLAG_FOR_UNREG_OPTION` mode. -- Use `parser::pos_args()`, `parser::flags()` and `parser::params()` to access and iterate over the Arg containers directly. +- Use `parser::add_param()`, `parser::add_params()` or the `parser({...})` constructor to *optionally* pre-register a parameter name when in `PREFER_FLAG_FOR_UNREG_OPTION` mode. +- Use `parser`, `parser::pos_args()`, `parser::flags()` and `parser::params()` to access and iterate over the Arg containers directly. ## Colophon I ❤ your feedback. If you found Argh! useful - do Tweet about it to let [me](https://twitter.com/AdiShavit) know. If you found it lacking, please post an [issue](https://github.com/adishavit/argh/issues).