Skip to content

Align cmdline parameter names cases #428

@artek-koltun

Description

@artek-koltun

For some cmds, parameter names are separated by - char, in others camel case is used.

For example

godpu/cmd/evpn-svi.go

Lines 51 to 53 in 63d1b25

cmd.Flags().StringVar(&logicalBridge, "logicalBridge", "", "Pair of vni and vlan_id must be unique")
cmd.Flags().StringVar(&mac, "mac", "", "GW MAC address, random MAC assigned if not specified")
cmd.Flags().StringSliceVar(&gwIPs, "gw-ips", nil, "List of GW IP addresses")

godpu/cmd/evpn-svi.go

Lines 103 to 104 in 63d1b25

cmd.Flags().BoolVarP(&allowMissing, "allowMissing", "a", false, "Specify the name of the BridgePort")
cmd.Flags().StringVar(&addr, "addr", "localhost:50151", "address of OPI gRPC server")

godpu/cmd/evpn-svi.go

Lines 221 to 222 in 63d1b25

cmd.Flags().StringSliceVar(&updateMask, "update-mask", nil, "update mask")
cmd.Flags().BoolVarP(&allowMissing, "allowMissing", "a", false, "allow the missing")

cmd.Flags().BoolVar(&allowMissing, "allowMissing", false, "cmd succeeds if attempts to delete a resource that is not present")

Code should be aligned in all files

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions