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:
Guillaume Tardif 2020-06-23 11:27:19 +02:00
parent 03f11e2953
commit 38d4f8d25a
5 changed files with 22 additions and 9 deletions

View file

@ -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)