Skip to content

sfputil: add lpmode show and firmware show as aliases for show lpmode / show fwversion #4518

@maheeppartap-nexthop

Description

@maheeppartap-nexthop

Why

sfputil groups mutating commands by topic - sfputil lpmode {on,off} and sfputil firmware {run,commit,upgrade,download,unlock,target} - but the read-side equivalents only exist under a separate top-level show group (sfputil show lpmode, sfputil show fwversion). A user running sfputil lpmode --help or sfputil firmware --help sees only mutating actions and has no signal that an inspection command exists elsewhere.
This will help with discoverability: --help becomes self-contained — the inspection command is reachable from the same help output as the verbs.

Proposal

I propose to expose the existing read commands as aliases under their topic groups:

sfputil lpmode show — same behavior as sfputil show lpmode
sfputil firmware show— same behavior as sfputil show fwversion

The originals should remain in place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions