File: we_need_syn_full.rs

package info (click to toggle)
rust-structopt 0.3.26-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 796 kB
  • sloc: makefile: 2
file content (19 lines) | stat: -rw-r--r-- 445 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// See https://github.com/TeXitoi/structopt/issues/354

use structopt::StructOpt;

#[test]
fn we_need_syn_full() {
    #[allow(unused)]
    #[derive(Debug, StructOpt, Clone)]
    struct Args {
        #[structopt(
            short = "c",
            long = "colour",
            help = "Output colouring",
            default_value = "auto",
            possible_values = &["always", "auto", "never"]
        )]
        colour: String,
    }
}