$NetBSD: patch-ag,v 1.6 2014/06/15 22:44:15 tron Exp $

Fix handling of command line options.

http://libtorrent.rakshasa.no/ticket/2657

--- src/main.cc.orig	2012-03-20 15:09:58.000000000 +0000
+++ src/main.cc
@@ -843,14 +851,14 @@ main(int argc, char** argv) {
     }
 #endif
 
-    int firstArg = parse_options(control, argc, argv);
-
     if (OptionParser::has_flag('n', argc, argv)) {
       lt_log_print(torrent::LOG_WARN, "Ignoring ~/.rtorrent.rc.");
     } else {
       rpc::parse_command_single(rpc::make_target(), "try_import = ~/.rtorrent.rc");
     }
 
+    int firstArg = parse_options(control, argc, argv);
+
     control->initialize();
 
     // Load session torrents and perform scheduled tasks to ensure
