Permalink
Browse files

Added fix for invalid verbose level setting, refers to issue #389

  • Loading branch information...
1 parent b04f052 commit 4d232ec2af7c53e8ecf85fa52b5e5cb9679d1c0f robvdveer committed Aug 17, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 Application/GBAppledocApplication.m
@@ -376,6 +376,11 @@ - (void)validateSettingsAndArguments:(NSArray *)arguments {
if (!self.templatesFound) {
[NSException raise:@"No predefined templates path exists and no template path specified from command line!"];
}
+
+ if ([[NSScanner scannerWithString:self.verbose] scanInt:NULL] == false)
+ {
+ [NSException raise:@"--%@ argument or global setting must be numeric!", kGBArgVerbose];
+ }
// Validate we have at least one argument specifying the path to the files to handle. Also validate all given paths are valid.
if ([arguments count] == 0) [NSException raise:@"At least one directory or file name path is required, use 'appledoc --help'"];

0 comments on commit 4d232ec

Please sign in to comment.