Skip to content

Rust comment explaining NoArgs struct has become --help message #4

@simonhollingshead

Description

@simonhollingshead

/// Convenience type that can be used as the `Args` associated type on

❯ ./helloworld-grpc-server --help
Convenience type that can be used as the `Args` associated type on any [`Resource`] that takes no command line arguments.

[`Resource`]: [`crate::v0::Resource`]

Usage: helloworld-grpc-server [OPTIONS]

Options:
      --grpc-port <GRPC_PORT>
          TCP port number for insecure gRPC server. If unset, plain gRPC is not served.
...
❯ ./helloworld-grpc-client --help
Convenience type that can be used as the `Args` associated type on any [`Resource`] that takes no command line arguments.

[`Resource`]: [`crate::v0::Resource`]

Usage: helloworld-grpc-client [OPTIONS] --client-uri <client-uri>

Options:
      --greet-interval <GREET_INTERVAL>
          [default: 5s]
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions