OLD | NEW |
1 /* | 1 /* |
2 * This Source Code is subject to the terms of the Mozilla Public License | 2 * This Source Code is subject to the terms of the Mozilla Public License |
3 * version 2.0 (the "License"). You can obtain a copy of the License at | 3 * version 2.0 (the "License"). You can obtain a copy of the License at |
4 * http://mozilla.org/MPL/2.0/. | 4 * http://mozilla.org/MPL/2.0/. |
5 */ | 5 */ |
6 | 6 |
| 7 "use strict"; |
| 8 |
7 /** | 9 /** |
8 * @module commandLine | 10 * @module commandLine |
9 */ | 11 */ |
10 | 12 |
11 Cu.import("resource://gre/modules/Services.jsm"); | 13 Cu.import("resource://gre/modules/Services.jsm"); |
12 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); | 14 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); |
13 | 15 |
14 let CommandLineHandler = | 16 let CommandLineHandler = |
15 { | 17 { |
16 // Starting the entry with "k" makes it have slightly higher priority than def
ault command line handlers. | 18 // Starting the entry with "k" makes it have slightly higher priority than def
ault command line handlers. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 { | 52 { |
51 let port = cmdline.handleFlagWithParam("crawler-port", false); | 53 let port = cmdline.handleFlagWithParam("crawler-port", false); |
52 if (port != null) | 54 if (port != null) |
53 require("main").startup(parseInt(port)); | 55 require("main").startup(parseInt(port)); |
54 }, | 56 }, |
55 | 57 |
56 QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler, Ci.nsIFactory
]) | 58 QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler, Ci.nsIFactory
]) |
57 }; | 59 }; |
58 | 60 |
59 CommandLineHandler.init(); | 61 CommandLineHandler.init(); |
OLD | NEW |