removed printlns, updated Changelog, updated man

This commit is contained in:
Alexander Karlis 2020-09-12 00:26:53 -04:00 committed by David Peter
parent d349974089
commit 6017989c4c
4 changed files with 8 additions and 4 deletions

View File

@ -4,6 +4,8 @@
- Added support for the `NO_COLOR` environment variable, see #1021 and #1031 (@eth-p)
- Added `-P` short flag to disable paging, revised man page description, see #1075 and #1082 (@LordFlashmeow)
- Added `--force-colorization` flag & `-f` short flag to provide an alias for forced colorization/decorization, \
revised man page description, see #1141 (@alexanderkarlis)
## Bugfixes

View File

@ -87,6 +87,12 @@ Specify when to use the decorations that have been specified via '\-\-style'. Th
automatic mode only enables decorations if an interactive terminal is detected. Possible
values: *auto*, never, always.
.HP
\fB\-f\fR, \fB\-\-force\-colorization\fR
.IP
Alias for '--decorations=always --color=always'. This is useful \
if the output of bat is piped to another program, but you want \
to keep the colorization/decorations.
.HP
\fB\-\-paging\fR <when>
.IP
Specify when to use the pager. To disable the pager, use \&'\-\-paging=never' or its alias,

View File

@ -288,7 +288,6 @@ impl App {
fn style_components(&self) -> Result<StyleComponents> {
let matches = &self.matches;
println!("{:#?}", matches);
Ok(StyleComponents(
if matches.value_of("decorations") == Some("never") {
HashSet::new()

View File

@ -209,7 +209,6 @@ fn run() -> Result<bool> {
} else {
let inputs = vec![Input::ordinary_file(OsStr::new("cache"))];
let config = app.config(&inputs)?;
println!("{:#?}", config);
run_controller(inputs, &config)
}
@ -218,8 +217,6 @@ fn run() -> Result<bool> {
let inputs = app.inputs()?;
let config = app.config(&inputs)?;
println!("{:#?}", config);
if app.matches.is_present("list-languages") {
list_languages(&config)?;
Ok(true)