From 2a8878cd532c810901860a0e156df8d27e14b336 Mon Sep 17 00:00:00 2001
From: Sam Yates <halfflat@gmail.com>
Date: Tue, 9 Nov 2021 22:53:32 +0800
Subject: [PATCH] Update/fix tinyopt README.md (#1747)

tinyopt README.md had an example which was not updated to the 1.0 API. Fixed upstream, and this is a copy.
---
 ext/tinyopt/README.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ext/tinyopt/README.md b/ext/tinyopt/README.md
index cee0531a..a4ee15db 100644
--- a/ext/tinyopt/README.md
+++ b/ext/tinyopt/README.md
@@ -64,9 +64,9 @@ int main(int argc, char** argv) {
 
         for (auto arg = argv+1; *arg; ) {
             bool ok =
-                help << to::parse(arg, 'h', "help") ||
-                n    << to::parse<int>(arg, 'n', "number") ||
-                fn   << to::parse<int>(arg, to::keywords(functions), 'f', "function");
+                help << to::parse(arg, "-h", "--help") ||
+                n    << to::parse<int>(arg, "-n", "--number") ||
+                fn   << to::parse<int>(arg, to::keywords(functions), "-f", "--function");
 
             if (!ok) throw to::option_error("unrecognized argument", *arg);
         }
-- 
GitLab