Skip to content

Nil IP addresses options are displayed as "<nil>" in the help message #13878

@ghost

Description

I just noticed that docker --help displays <nil> for options (flags) that have a type of `IPVar' and an empty default:

% docker --help | grep nil
  --default-gateway=<nil>              Container default gateway IPv4 address
  --default-gateway-v6=<nil>           Container default gateway IPv6 address

I think it would be better not to display anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions