diff options
Diffstat (limited to 'src/arguments.cpp')
-rw-r--r-- | src/arguments.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/arguments.cpp b/src/arguments.cpp new file mode 100644 index 0000000..128223b --- /dev/null +++ b/src/arguments.cpp @@ -0,0 +1,17 @@ +#include "arguments.h" + +/*! the argument list is documented if one of its + * arguments is documented + */ +bool ArgumentList::hasDocumentation() const +{ + bool hasDocs=FALSE; + ArgumentListIterator ali(*this); + Argument *a; + for (ali.toFirst();!hasDocs && (a=ali.current());++ali) + { + hasDocs = a->hasDocumentation(); + } + return hasDocs; +} + |