Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
3bba5f58
Commit
3bba5f58
authored
Apr 02, 2003
by
Brad King
💬
Browse files
ENH: Running with zero arguments now produces usage.
parent
5ebcb51f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmDocumentation.cxx
View file @
3bba5f58
...
@@ -172,6 +172,13 @@ void cmDocumentation::PrintDocumentation(Type ht, std::ostream& os)
...
@@ -172,6 +172,13 @@ void cmDocumentation::PrintDocumentation(Type ht, std::ostream& os)
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
cmDocumentation
::
Type
cmDocumentation
::
CheckOptions
(
int
argc
,
char
**
argv
)
cmDocumentation
::
Type
cmDocumentation
::
CheckOptions
(
int
argc
,
char
**
argv
)
{
{
// Providing zero arguments gives usage information.
if
(
argc
==
1
)
{
return
cmDocumentation
::
Usage
;
}
// Search for supported help options.
for
(
int
i
=
1
;
i
<
argc
;
++
i
)
for
(
int
i
=
1
;
i
<
argc
;
++
i
)
{
{
if
((
strcmp
(
argv
[
i
],
"-help"
)
==
0
)
||
if
((
strcmp
(
argv
[
i
],
"-help"
)
==
0
)
||
...
@@ -402,9 +409,9 @@ void cmDocumentation::PrintSectionUsage(std::ostream& os,
...
@@ -402,9 +409,9 @@ void cmDocumentation::PrintSectionUsage(std::ostream& os,
os
<<
"
\n
"
;
os
<<
"
\n
"
;
this
->
TextIndent
=
""
;
this
->
TextIndent
=
""
;
this
->
PrintFormatted
(
os
,
op
->
brief
);
this
->
PrintFormatted
(
os
,
op
->
brief
);
os
<<
"
\n
"
;
}
}
}
}
os
<<
"
\n
"
;
}
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment