We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d90389e commit 0a65a4bCopy full SHA for 0a65a4b
src/main.rs
@@ -328,13 +328,15 @@ fn main() {
328
let procname = args.value_of("process");
329
let procall = args.is_present("process-all");
330
331
- let mut format = output::Format::Text;
332
- if args.is_present("json") {
333
- format = output::Format::Json;
+ let format = if args.is_present("json") {
334
if args.is_present("pretty") {
335
- format = output::Format::JsonPretty;
+ output::Format::JsonPretty
+ } else {
+ output::Format::Json
336
}
337
- }
338
+ output::Format::Text
339
+ };
340
341
let settings = output::Settings::set(
342
#[cfg(feature = "color")]
0 commit comments