show default controller in output

This commit is contained in:
crapStone 2022-07-16 02:22:57 +02:00
parent 96f92e0d3f
commit fcc49740c7
No known key found for this signature in database
GPG key ID: 4CAA9E39EEDEB1F0
2 changed files with 6 additions and 7 deletions

View file

@ -27,8 +27,11 @@ fn main() {
};
if matches.is_present("list") {
println!("{default_ctrl} [default]");
for ctrl in ctrls.keys() {
println!("{ctrl}");
if ctrl != &default_ctrl {
println!("{ctrl}");
}
}
exit(exitcode::OK);
} else if let Some(value) = matches.value_of("set") {