bat-extras icon indicating copy to clipboard operation
bat-extras copied to clipboard

prettybat: error when using `-p`/`--plain`

Open oyarsa opened this issue 2 years ago • 1 comments
trafficstars

I'm trying to use prettybat without line numbers, but I'm getting errors with both -p and --plain:

$ prettybat --plain file.json
error: The value '' was provided to '--plain' but it wasn't expecting any more values

bat --theme <theme>

For more information try --help

$ prettybat -p file.json
error: Found argument '-=' which wasn't expected, or isn't valid in this context

        If you tried to supply `-=` as a value rather than a flag, use `-- -=`

USAGE:
    bat [OPTIONS] [FILE]...
    bat <SUBCOMMAND>

For more information try --help

Version:

$ prettybat --version
prettybat 2022.07.27

Copyright (C) 2019-2021 eth-p | MIT License
https://github.com/eth-p/bat-extras

Installed with brew install bat-extras on macOS 13 (Apple Silicon).

oyarsa avatar Mar 21 '23 13:03 oyarsa

Thanks for pointing this out! It's now fixed in master, and will be released soon.

eth-p avatar Mar 24 '23 18:03 eth-p