Skip to content

serde-like default value behavior #105

Closed

Description

@epage

It'd be nice to have annotations like serde for default values

  • Use the struct's Default impl
  • Use the field's Default impl

Activity

  1. changed the title [-]`serde`-like defaul value behavior[/-] [+]`serde`-like default value behavior[/+] on May 3, 2018
  2. TeXitoi commented on May 3, 2018

    @TeXitoi
    Owner

    The problem is that, most of the time, clap will not be able to show the default value (because just a few types implement Display).

  3. added
    enhancement
    on May 3, 2018
  4. added
    need-design
    on Oct 12, 2018
  5. TeXitoi commented on Jan 18, 2022

    @TeXitoi
    Owner

    This is an enhancement, and structopt is now feature frozen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneed-design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions