mirror of
https://github.com/docker/compose.git
synced 2026-10-08 06:10:09 +00:00
Shell out to Moby cli if user uses -H, regardless of context set. Moby cli will refuse both options (context & host) to be set at the same time
This commit is contained in:
parent
03f11e2953
commit
38d4f8d25a
5 changed files with 22 additions and 9 deletions
|
|
@ -8,9 +8,6 @@ import (
|
|||
|
||||
// AddMobyFlagsForRetrocompatibility adds retrocompatibility flags to our commands
|
||||
func AddMobyFlagsForRetrocompatibility(flags *flag.FlagSet) {
|
||||
const hostFlag = "host"
|
||||
flags.StringP(hostFlag, "H", "", "Daemon socket(s) to connect to")
|
||||
markHidden(flags, hostFlag)
|
||||
const logLevelFlag = "log-level"
|
||||
flags.StringP(logLevelFlag, "l", "info", `Set the logging level ("debug"|"info"|"warn"|"error"|"fatal")`)
|
||||
markHidden(flags, logLevelFlag)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue