summaryrefslogtreecommitdiff
path: root/src/anytun-config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/anytun-config.cpp')
-rw-r--r--src/anytun-config.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/anytun-config.cpp b/src/anytun-config.cpp
index 0e60710..d09f1e8 100644
--- a/src/anytun-config.cpp
+++ b/src/anytun-config.cpp
@@ -104,11 +104,9 @@ int main(int argc, char* argv[])
{
try
{
- bool result = gOpt.parse(argc, argv);
- if(!result) {
- gOpt.printUsage();
+ if(!gOpt.parse(argc, argv))
exit(0);
- }
+
StringList targets = gOpt.getLogTargets();
for(StringList::const_iterator it = targets.begin();it != targets.end(); ++it)
cLog.addTarget(*it);