doc/option_normalizers.md in hammer_cli-0.11.0 vs doc/option_normalizers.md in hammer_cli-0.12.0
- old
+ new
@@ -45,9 +45,11 @@
raise ArgumentError, "value must be one of true/false, yes/no, 1/0"
end
end
```
+Note: the `format` is not called when `NIL` (value reserved for nil) is used.
+
#### Value completion
Normalizers can also provide completion of option values via method `complete`. It takes one argument - the current option value at the time the completion was requested. In the simplest cases the method returns array of all possible values. More complex completions can use the current value argument for building the return values.