Skip to content

Commit bbb2c45

Browse files
committed
[breaking] change --timeout flag to --discovery-timeout for consistency
1 parent d6cba71 commit bbb2c45

File tree

2 files changed

+22
-27
lines changed

2 files changed

+22
-27
lines changed

cli/board/list.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@ func initListCommand() *cobra.Command {
4747
Run: runListCommand,
4848
}
4949

50-
listCommand.Flags().DurationVar(&timeout, "timeout", time.Second,
51-
tr("The connected devices search timeout, raise it if your board doesn't show up e.g.: 10s"))
52-
listCommand.Flags().BoolVarP(&watch, "watch", "w", false,
53-
tr("Command keeps running and prints list of connected boards whenever there is a change."))
50+
listCommand.Flags().DurationVar(&timeout, "discovery-timeout", time.Second, tr("Max time to wait for port discovery, e.g.: 30s, 1m"))
51+
listCommand.Flags().BoolVarP(&watch, "watch", "w", false, tr("Command keeps running and prints list of connected boards whenever there is a change."))
5452

5553
return listCommand
5654
}

i18n/data/en.po

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ msgstr "Available Commands:"
216216
msgid "Binary file to upload."
217217
msgstr "Binary file to upload."
218218

219-
#: cli/board/list.go:90
220-
#: cli/board/list.go:128
219+
#: cli/board/list.go:88
220+
#: cli/board/list.go:126
221221
#: cli/board/listall.go:87
222222
#: cli/board/search.go:85
223223
msgid "Board Name"
@@ -373,7 +373,7 @@ msgstr "Clean caches."
373373
msgid "Comma-separated list of additional URLs for the Boards Manager."
374374
msgstr "Comma-separated list of additional URLs for the Boards Manager."
375375

376-
#: cli/board/list.go:53
376+
#: cli/board/list.go:51
377377
msgid "Command keeps running and prints list of connected boards whenever there is a change."
378378
msgstr "Command keeps running and prints list of connected boards whenever there is a change."
379379

@@ -427,16 +427,16 @@ msgstr "Configuring platform"
427427
msgid "Configuring platform."
428428
msgstr "Configuring platform."
429429

430-
#: cli/board/list.go:186
430+
#: cli/board/list.go:184
431431
msgid "Connected"
432432
msgstr "Connected"
433433

434434
#: cli/monitor/monitor.go:177
435435
msgid "Connected to %s! Press CTRL-C to exit."
436436
msgstr "Connected to %s! Press CTRL-C to exit."
437437

438-
#: cli/board/list.go:90
439-
#: cli/board/list.go:128
438+
#: cli/board/list.go:88
439+
#: cli/board/list.go:126
440440
msgid "Core"
441441
msgstr "Core"
442442

@@ -557,7 +557,7 @@ msgstr "Directory where to save generated files. Default is './docs', the direct
557557
msgid "Disable completion description for shells that support it"
558558
msgstr "Disable completion description for shells that support it"
559559

560-
#: cli/board/list.go:187
560+
#: cli/board/list.go:185
561561
msgid "Disconnected"
562562
msgstr "Disconnected"
563563

@@ -659,8 +659,8 @@ msgstr "Error creating sketch archive"
659659
msgid "Error creating sketch: %v"
660660
msgstr "Error creating sketch: %v"
661661

662-
#: cli/board/list.go:74
663-
#: cli/board/list.go:83
662+
#: cli/board/list.go:72
663+
#: cli/board/list.go:81
664664
msgid "Error detecting boards: %v"
665665
msgstr "Error detecting boards: %v"
666666

@@ -984,7 +984,7 @@ msgstr "Error: command description is not supported by %v"
984984
msgid "Error: invalid source code overrides data file: %v"
985985
msgstr "Error: invalid source code overrides data file: %v"
986986

987-
#: cli/board/list.go:90
987+
#: cli/board/list.go:88
988988
msgid "Event"
989989
msgstr "Event"
990990

@@ -1007,8 +1007,8 @@ msgstr "Expected compiled sketch in directory %s, but is a file instead"
10071007

10081008
#: cli/board/attach.go:40
10091009
#: cli/board/details.go:43
1010-
#: cli/board/list.go:90
1011-
#: cli/board/list.go:128
1010+
#: cli/board/list.go:88
1011+
#: cli/board/list.go:126
10121012
#: cli/board/listall.go:87
10131013
#: cli/board/search.go:85
10141014
msgid "FQBN"
@@ -1431,6 +1431,7 @@ msgid "Maintainer: %s"
14311431
msgstr "Maintainer: %s"
14321432

14331433
#: cli/arguments/port.go:52
1434+
#: cli/board/list.go:50
14341435
msgid "Max time to wait for port discovery, e.g.: 30s, 1m"
14351436
msgstr "Max time to wait for port discovery, e.g.: 30s, 1m"
14361437

@@ -1497,7 +1498,7 @@ msgstr "Name: \"%s\""
14971498
msgid "New version"
14981499
msgstr "New version"
14991500

1500-
#: cli/board/list.go:118
1501+
#: cli/board/list.go:116
15011502
msgid "No boards found."
15021503
msgstr "No boards found."
15031504

@@ -1716,8 +1717,8 @@ msgstr "Platform name:"
17161717
msgid "Platform size (bytes):"
17171718
msgstr "Platform size (bytes):"
17181719

1719-
#: cli/board/list.go:90
1720-
#: cli/board/list.go:128
1720+
#: cli/board/list.go:88
1721+
#: cli/board/list.go:126
17211722
msgid "Port"
17221723
msgstr "Port"
17231724

@@ -1779,7 +1780,7 @@ msgstr "Progress {0}"
17791780
msgid "Property '%s' is undefined"
17801781
msgstr "Property '%s' is undefined"
17811782

1782-
#: cli/board/list.go:128
1783+
#: cli/board/list.go:126
17831784
msgid "Protocol"
17841785
msgstr "Protocol"
17851786

@@ -2014,10 +2015,6 @@ msgstr "TOUCH: error during reset: %s"
20142015
msgid "The TCP port the daemon will listen to"
20152016
msgstr "The TCP port the daemon will listen to"
20162017

2017-
#: cli/board/list.go:51
2018-
msgid "The connected devices search timeout, raise it if your board doesn't show up e.g.: 10s"
2019-
msgstr "The connected devices search timeout, raise it if your board doesn't show up e.g.: 10s"
2020-
20212018
#: cli/cli.go:123
20222019
msgid "The custom config file (if not specified the default will be used)."
20232020
msgstr "The custom config file (if not specified the default will be used)."
@@ -2087,8 +2084,8 @@ msgstr "Toolchain type"
20872084
msgid "Turns on verbose mode."
20882085
msgstr "Turns on verbose mode."
20892086

2090-
#: cli/board/list.go:90
2091-
#: cli/board/list.go:128
2087+
#: cli/board/list.go:88
2088+
#: cli/board/list.go:126
20922089
msgid "Type"
20932090
msgstr "Type"
20942091

@@ -2144,7 +2141,7 @@ msgstr "Uninstalls one or more cores and corresponding tool dependencies if no l
21442141
msgid "Uninstalls one or more libraries."
21452142
msgstr "Uninstalls one or more libraries."
21462143

2147-
#: cli/board/list.go:160
2144+
#: cli/board/list.go:158
21482145
msgid "Unknown"
21492146
msgstr "Unknown"
21502147

0 commit comments

Comments
 (0)