Skip to content

How to run a command that has subcommands? #103

Open
@OnkelTem

Description

@OnkelTem

From the docs:

Commands can also have subcommands, which are added with addSubcommand. A command with subcommands can't run its own code, so run doesn't need to be implemented.

Consider an example:

$ ip route
<prints routes>

$ ip route add ...
<adds a route>

$ ip route del ...
<removes a route>

So I cannot implement a similar CLI with the args package?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions