diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-08 11:52:09 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-08 12:00:07 +0100 |
commit | 09d19c7c8c5102f9be477aa848769fc12d4c7fa1 (patch) | |
tree | f522fce9aed01e749a0e838cb473c89bfc81f8f8 /src/config | |
parent | 386939049a493499c979364e871fef78fd236028 (diff) |
Add helper flag in package_print_format to check whether any other flag was requested
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/util.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/util.rs b/src/config/util.rs index c1f302d..052899f 100644 --- a/src/config/util.rs +++ b/src/config/util.rs @@ -5,6 +5,7 @@ pub fn default_progress_format() -> String { pub fn default_package_print_format() -> String { String::from(indoc::indoc!(r#" {{i}} - {{p.name}} : {{p.version}} + {{~ #if print_any }} ================================== {{~#if print_sources}} @@ -54,6 +55,7 @@ pub fn default_package_print_format() -> String { {{~#if print_script}} {{script}} {{/if~}} + {{~ /if ~}} "#)) } |