mirror of
https://github.com/containers/podman.git
synced 2025-12-15 19:49:29 +08:00
Merge pull request #13296 from Romain-Geissler-1A/url-and-connection-implies-remote
Option --url and --connection should imply --remote.
This commit is contained in:
@@ -126,6 +126,17 @@ See 'podman version --help'" "podman version --remote"
|
||||
if grep -- " --remote " <<<"$output"; then
|
||||
die "podman --help, with CONTAINER_CONNECTION set, is showing --remote"
|
||||
fi
|
||||
|
||||
# When it detects --url or --connection, --remote is not an option
|
||||
run_podman --url foobar --help
|
||||
if grep -- " --remote " <<<"$output"; then
|
||||
die "podman --help, with --url set, is showing --remote"
|
||||
fi
|
||||
|
||||
run_podman --connection foobar --help
|
||||
if grep -- " --remote " <<<"$output"; then
|
||||
die "podman --help, with --connection set, is showing --remote"
|
||||
fi
|
||||
}
|
||||
|
||||
# Check that just calling "podman-remote" prints the usage message even
|
||||
|
||||
Reference in New Issue
Block a user