Commits

Mathias Panzenböck committed 3352f07

fixed typo in Readme

Comments (0)

Files changed (2)

parseopt/README.md

 
 Parse a `float` option argument. You can optionally specify `min` and `max`
 parameters to the option definition in order to limit the range of allowed
-values. Using the boolean `NaN` parameter it can be controlled if `NaN'
+values. Using the boolean `NaN` parameter it can be controlled if `NaN`
 values are allowed (default: `false`).
 
 Example:
 
 Parse an `integer` option argument. You can optionally specify `min` and `max`
 parameters to the option definition in order to limit the range of allowed
-values. Using the boolean `NaN` parameter it can be controlled if `NaN'
+values. Using the boolean `NaN` parameter it can be controlled if `NaN`
 values are allowed (default: `false`). The `base` parameter controlls the
 base of the parsed number. Per default integers are parsed like JavaScript
 integer lieterals, meaning a `0x` prefix specifies a hexadecimal number, a

parseopt/demo/demo1.js

 	]
 });
 
+// other way to define options:
 parser.add(['--foo', '-f'], {
 	type: 'flag',
 	help: 'This is a flag.',