dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
command.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added mechanism to understand passed Option without value.
[command.git]
/
tests
/
argument
/
handles_string_value.cpp
diff --git
a/tests/argument/handles_string_value.cpp
b/tests/argument/handles_string_value.cpp
index 9dd6efa8a53b0c461585090dad1e761d4f884880..38e6efa98c5d6044eed80c110a7ca617b6e872ed 100644
(file)
--- a/
tests/argument/handles_string_value.cpp
+++ b/
tests/argument/handles_string_value.cpp
@@
-22,6
+22,10
@@
int main() {
if (argument.understand(VALUE)) {
argument.handle();
}
if (argument.understand(VALUE)) {
argument.handle();
}
+ else {
+ cout << "Argument class do not understand string values\n";
+ return 1;
+ }
int cmp = strcmp(test.c_str(), VALUE);
int cmp = strcmp(test.c_str(), VALUE);