diff options
author | Canop <cano.petrole@gmail.com> | 2021-06-15 19:00:51 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-06-15 19:00:51 +0200 |
commit | cd1d2c361690043e485d398fe8634268e07af365 (patch) | |
tree | 9c501bdaf92c56722ee4c51111bc12e626548309 /src/app | |
parent | 304313d81a6d16c49e25568767abb66a8d4a069e (diff) |
better handling of auto color mode
- deciding whether to use no-style when there's no --color argument is made twice:
for app running and for export when leaving
- remove the deprecated `--no-style` launch argument (use `--color no` instead)
- deprecate the `--out` argument (redirecting the output is the recommanded solution)
Fix #397
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/app.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/app.rs b/src/app/app.rs index 44217e2..efd5045 100644 --- a/src/app/app.rs +++ b/src/app/app.rs @@ -668,7 +668,7 @@ impl App { let event_source = EventSource::new()?; let rx_events = event_source.receiver(); let mut dam = Dam::from(rx_events); - let skin = AppSkin::new(conf, con.launch_args.no_style); + let skin = AppSkin::new(conf, con.launch_args.color == Some(false)); let mut app_state = AppState { stage: Stage::default(), root: con.launch_args.root.clone(), |