Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c07057c7 authored by Martin Geisler's avatar Martin Geisler
Browse files

pdl: use docstrings instead of attribute arguments

Editors typically have better support for editing text in docstrings
than in attributes.

Test: pdl --help
Change-Id: I3b1062a188feb6d34d727442390bf1859270bf77
parent 8d26041b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -21,10 +21,12 @@ use crate::lint::Lintable;
#[derive(Debug, StructOpt)]
#[structopt(name = "pdl-parser", about = "Packet Description Language parser tool.")]
struct Opt {
    #[structopt(short, long = "--version", help = "Print tool version and exit.")]
    /// Print tool version and exit.
    #[structopt(short, long = "--version")]
    version: bool,

    #[structopt(name = "FILE", help = "Input file.")]
    /// Input file.
    #[structopt(name = "FILE")]
    input_file: String,
}