This commit is contained in:
Sindre Johansen authored and David Peter committed 2018-10-21 22:52:26 +02:00
1 parent 7c98a1c901
commit 155bad3862
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -270,7 +270,8 @@ impl App {
.collect::<Result<Vec<OutputComponent>>>()
}))?;
matches.value_of("style")
matches
.value_of("style")
.map(|styles| {
styles
.split(",")
+1 -1
View File
@@ -110,7 +110,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
!&[
"auto", "full", "plain", "changes", "header", "grid", "numbers",
]
.contains(style)
.contains(style)
});
if let Some(invalid) = invalid_vals.next() {