Issue #299 - allow '--help' to be the same as '-h'
This commit is contained in:
parent
fe62fbf8d9
commit
0ee77ca7bd
|
@ -1100,6 +1100,7 @@ int main( int argc, char** argv )
|
||||||
tidyOptSetBool( tdoc, TidyQuiet, yes );
|
tidyOptSetBool( tdoc, TidyQuiet, yes );
|
||||||
|
|
||||||
else if ( strcasecmp(arg, "help") == 0 ||
|
else if ( strcasecmp(arg, "help") == 0 ||
|
||||||
|
strcasecmp(arg, "-help") == 0 ||
|
||||||
strcasecmp(arg, "h") == 0 || *arg == '?' )
|
strcasecmp(arg, "h") == 0 || *arg == '?' )
|
||||||
{
|
{
|
||||||
help( prog );
|
help( prog );
|
||||||
|
|
Loading…
Reference in a new issue