summaryrefslogtreecommitdiff
path: root/src/anytun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r--src/anytun.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp
index e9f2452..e70087d 100644
--- a/src/anytun.cpp
+++ b/src/anytun.cpp
@@ -366,11 +366,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);