Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
81a04634
"tests/vscode:/vscode.git/clone" did not exist on "3a063f5976781ed30c1c36b65fe837d63e76b94e"
Commit
81a04634
authored
Apr 23, 2014
by
Davis King
Browse files
Improve error message generated when calling argument() incorrectly.
parent
99342ca5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
dlib/cmd_line_parser/cmd_line_parser_kernel_1.h
dlib/cmd_line_parser/cmd_line_parser_kernel_1.h
+7
-6
No files found.
dlib/cmd_line_parser/cmd_line_parser_kernel_1.h
View file @
81a04634
...
...
@@ -169,10 +169,11 @@ namespace dlib
// make sure requires clause is not broken
DLIB_CASSERT
(
N
<
count
()
&&
arg
<
number_of_arguments
(),
"
\t
const string_type& cmd_line_parser_option::argument(unsigned long,unsigned long)"
<<
"
\n\t
see the requires clause of argument()
"
<<
"
\n\t
Invalid arguments were given to this function.
"
<<
"
\n\t
this: "
<<
this
<<
"
\n\t
N: "
<<
N
<<
"
\n\t
arg: "
<<
arg
<<
"
\n\t
name(): "
<<
narrow
(
name
())
<<
"
\n\t
count(): "
<<
count
()
<<
"
\n\t
number_of_arguments(): "
<<
number_of_arguments
()
);
...
...
Write
Preview
Markdown
is supported
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