You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.help("Port to use. This can be changed to bypass firewalls and dissimulate \
246
-
the use of WireGuard. A value of \"random\" will choose a random port \
247
-
within the available range, which is the only available behaviour of the \
248
-
windows MozillaVPN client."))
259
+
Arg::with_name("output")
260
+
.short("o")
261
+
.help(
262
+
"Directory in which to output the WireGuard configuration. \
263
+
Defaults to the current directory",
264
+
)
265
+
.default_value("."),
266
+
)
267
+
.arg(
268
+
Arg::with_name("privkey")
269
+
.long("privkey")
270
+
.help(
271
+
"Private key to use in the configuration file. If it is not \
272
+
specified, mozwire will generate one and update the device \
273
+
list.",
274
+
)
275
+
.takes_value(true),
276
+
)
277
+
.arg(&name_arg)
278
+
.arg(
279
+
Arg::with_name("port")
280
+
.long("port")
281
+
.short("p")
282
+
.default_value("51820")
283
+
.help(
284
+
"Port to use. This can be changed to bypass firewalls and \
285
+
dissimulate the use of WireGuard. A value of \"random\" will \
286
+
choose a random port within the available range, which is \
287
+
the only available behaviour of the windows MozillaVPN \
288
+
client.",
289
+
),
290
+
)
249
291
.arg(
250
292
Arg::with_name("limit")
251
-
.help("Limit the number of servers saved. A value of 0 disables the limit.")
293
+
.help(
294
+
"Limit the number of servers saved. A value of 0 disables the \
295
+
limit.",
296
+
)
252
297
.short("n")
253
298
.default_value("1"),
254
-
).arg(Arg::with_name("hop").help("Intermediate server (entry node) to connect to for multihop with wireguard.").takes_value(true).conflicts_with("port").long("hop"))
299
+
)
300
+
.arg(
301
+
Arg::with_name("hop")
302
+
.help(
303
+
"Intermediate server (entry node) to connect to for multihop \
.help("Print the token used to query the Mozilla API, so that it can be reused with --token, without having to sign in each time.")
262
-
.global(true)
316
+
.help(
317
+
"Print the token used to query the Mozilla API, so that it can be reused with \
318
+
--token, without having to sign in each time.",
319
+
)
320
+
.global(true),
263
321
)
264
322
.arg(
265
323
Arg::with_name("token")
266
324
.long("token")
267
325
.help(
268
-
"The token used to communicate with the Mozilla API. If unspecified, a web page \
269
-
will be opened to retrieve the token. the MOZ_TOKEN environment variable can \
270
-
also be used instead.",
271
-
).env("MOZ_TOKEN")
326
+
"The token used to communicate with the Mozilla API. If unspecified, a web \
327
+
page will be opened to retrieve the token. the MOZ_TOKEN environment \
328
+
variable can also be used instead.",
329
+
)
330
+
.env("MOZ_TOKEN")
331
+
.global(true),
332
+
)
333
+
.arg(
334
+
Arg::with_name("no-browser")
335
+
.long("no-browser")
336
+
.help(
337
+
"By default, mozwire will open the login page in a browser, this option \
338
+
prevents mozwire a browser page from being opened.",
339
+
)
340
+
.takes_value(false)
272
341
.global(true),
273
-
).arg(
274
-
Arg::with_name("no-browser").long("no-browser").help("By default, mozwire will open the login page in a browser, this option prevents mozwire a browser page from being opened.").takes_value(false).global(true)
0 commit comments