-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
A bad config file makes it impossible to use #3269
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
What steps will reproduce the bug?
- put some weird option (or option for another system) in a config file
- run bat with any command or option.
What happens?
the bad option in the config file means bat is unusable. No -V, --help, or anything else to fix the problem.
What did you expect to happen instead?
bat to complain, but ignore the option in the config file... at least for -V or --help.
How did you install bat?
nix home manager (which is why the config file being bad is kinda a pita.)
bat version and environment
system
------
**$ uname -srm**
Linux 6.6.87 x86_64
bat
---
**$ bat --version**
error: unexpected argument '--theme-dark' found
tip: a similar argument exists: '--theme'
Usage: bat --theme <theme> [FILE]...
For more information, try '--help'.
**$ env**
PAGER=less
error: unexpected argument '--theme-dark' found
tip: a similar argument exists: '--theme'
Usage: bat --theme <theme> [FILE]...
For more information, try '--help'.
bat_config
----------
error: unexpected argument '--theme-dark' found
tip: a similar argument exists: '--theme'
Usage: bat --theme <theme> [FILE]...
For more information, try '--help'.
bat_wrapper
-----------
diagnostic.sh: line 83: file: command not found
No wrapper script for 'bat'.
bat_wrapper_function
--------------------
No wrapper function for 'bat'.
**$ /run/current-system/sw/bin/zsh --login -i -c type cat**
cat is an alias for bat
tool
----
**$ less --version**
less 668 (PCRE2 regular expressions)
(from the diagnostic script.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working