BUG: make sure the gui still runs...

This commit is contained in:
Bill Hoffman 2009-02-21 14:38:35 -05:00
parent 9cd850c4c7
commit 71577b1d00
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ int main(int argc, char** argv)
// check docs first so that X is not need to get docs
// do docs, if args were given
cmDocumentation doc;
if(doc.CheckOptions(argc, argv))
if(argc >1 && doc.CheckOptions(argc, argv))
{
// Construct and print requested documentation.
cmake hcm;