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