From 71cc94c16207c10cfdfd40b83ec240c106735ca7 Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Mon, 22 Jul 2019 06:29:29 +0300 Subject: [PATCH] Drivers mode should be available for all commands --- cmd/selenoid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/selenoid.go b/cmd/selenoid.go index c43db33..21b7b28 100644 --- a/cmd/selenoid.go +++ b/cmd/selenoid.go @@ -72,6 +72,7 @@ func initFlags() { selenoidUIStatusCmd, } { c.Flags().BoolVarP(&quiet, "quiet", "q", false, "suppress output") + c.Flags().BoolVarP(&useDrivers, "use-drivers", "d", false, "use drivers mode instead of Docker") } for _, c := range []*cobra.Command{ selenoidDownloadCmd, @@ -134,7 +135,6 @@ func initFlags() { } { c.Flags().StringVarP(&browsers, "browsers", "b", "", "semicolon separated list of browser names to process") c.Flags().StringVarP(&browserEnv, "browser-env", "w", "", "override container or driver environment variables (e.g. \"KEY1=value1 KEY2=value2\")") - c.Flags().BoolVarP(&useDrivers, "use-drivers", "d", false, "use drivers mode instead of Docker") c.Flags().StringVarP(&browsersJSONUrl, "browsers-json", "j", selenoid.DefaultBrowsersJsonURL, "browsers JSON data URL (in most cases never need to be set manually)") c.Flags().BoolVarP(&skipDownload, "no-download", "n", false, "only output config file without downloading images or drivers") c.Flags().IntVarP(&lastVersions, "last-versions", "l", 2, "process only last N versions (Docker only)")