Anywhere where there are only a limited enum set of options, such as with the network option, we should show in the help what those options are. This is done with the possible_values structopt feature, see example in Compile command:
Compile{/// Sets the spending policy to compile#[structopt(name = "POLICY", required = true, index = 1)]policy:String,/// Sets the script type used to embed the compiled policy#[structopt(name = "TYPE", short = "t", long = "type", default_value = "wsh", possible_values = &["sh","wsh","sh-wsh"])]script_type:String,},
Anywhere where there are only a limited enum set of options, such as with the network option, we should show in the help what those options are. This is done with the
possible_valuesstructopt feature, see example in Compile command: