From 3ca670519d8c5cacd869b357560e34e52381f972 Mon Sep 17 00:00:00 2001 From: Michael Klement Date: Fri, 30 Jan 2015 10:46:06 -0500 Subject: [PATCH] Update README.md Clarification to point out that 'invalid' in this context refers to an invalid _value_ for a _known_ option - as opposed to an _unknown option_. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5aba088..1e9e748 100644 --- a/README.md +++ b/README.md @@ -137,8 +137,8 @@ config object and remove its invalid properties. ## Error Handling -By default, nopt outputs a warning to standard error when invalid -options are found. You can change this behavior by assigning a method +By default, nopt outputs a warning to standard error when invalid values for +known options are found. You can change this behavior by assigning a method to `nopt.invalidHandler`. This method will be called with the offending `nopt.invalidHandler(key, val, types)`.