Issue #299 - allow '--help' to be the same as '-h'

This commit is contained in:
Geoff McLane 2015-11-14 15:50:27 +01:00
parent fe62fbf8d9
commit 0ee77ca7bd

View file

@ -1100,6 +1100,7 @@ int main( int argc, char** argv )
tidyOptSetBool( tdoc, TidyQuiet, yes );
else if ( strcasecmp(arg, "help") == 0 ||
strcasecmp(arg, "-help") == 0 ||
strcasecmp(arg, "h") == 0 || *arg == '?' )
{
help( prog );