Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 933c459

Browse files
committed
[breaking] change --timeout flag to --discovery-timeout for consistency
1 parent a61a346 commit 933c459

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
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
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /