mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Improve output of list-passes
This commit is contained in:
parent
1e80f99778
commit
85f59dd111
1 changed files with 13 additions and 1 deletions
|
|
@ -163,8 +163,20 @@ fn run(opt: &Opt, command: &Command, context: &mut Context) {
|
|||
match *command {
|
||||
// --------------------------------------------------------------------
|
||||
Command::ListPasses => {
|
||||
println!("default passes:");
|
||||
let mut non_default = Vec::new();
|
||||
for pass in render_passes::RENDER_PASSES {
|
||||
println!("{}{}: {}", pass.name, if pass.default { " (default)" } else { "" }, pass.desc);
|
||||
if pass.default {
|
||||
println!("{}: {}", pass.name, pass.desc);
|
||||
} else {
|
||||
non_default.push(pass);
|
||||
}
|
||||
}
|
||||
if !non_default.is_empty() {
|
||||
println!("\nadditional passes:");
|
||||
for pass in non_default {
|
||||
println!("{}: {}", pass.name, pass.desc);
|
||||
}
|
||||
}
|
||||
},
|
||||
// --------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue