terminal-in-react
terminal-in-react copied to clipboard
fix `command -h` problems
You can reproduce the problems by using help -h twice.
The problems when using command -h are
- duplicate help message after using
-h - cannot read default value of the option properly after using
-h
This PR fix them by
- prevent adding options that have the same name as existing ones
- prevent modifying
option.usagefrom Object to string
http://terminal-in-react.surge.sh/
color white color -h color -h color -c red
