Skip to content

methods are not allowed for skipped fields when using multi-line doc comments #245

@DianaNites

Description

@DianaNites

Title. Structopt 0.3.0 errors out with methods are not allowed for skipped fields if skipped fields have doc comments, but only multi-line ones.

Repro:

#[derive(StructOpt)]
struct Example {
    /// This does an internal thing.
    /// Run-on sentence explanation.
    #[structopt(skip)]
    works: String,

    /// This does another internal thing.
    ///
    /// # IMPORTANT NOTE
    #[structopt(skip)]
    fails: String,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis is a BUG. The fix may be released in a patch version even if considered breaking

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions