You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh, I guess I shouldn't have mixed positional arguments and sub-commands. That was a bad idea. Thank you for reporting this.
The problem seems to be with the help subcommand that clap enables as soon as we have at least one subcommand (init-cache). clap seems to think that you wanted to call bat help due to the name of the file (triggered by any file named hel...). Similar problems occur with files named (ini...). We should get rid of the subcommands and turn init-cache into a command-line option.
* Remove the old `init-cache` subcommand
* Introduce a new `cache` subcommand that can be used like this:
* `bat cache -h` - Show help
* `bat cache --init` - Initialize cache from config dir
* `bat cache --clear` - Reset the cache
* `bat cache --config-dir` - Show config directory
* Update README
closes#44
* Remove the old `init-cache` subcommand
* Introduce a new `cache` subcommand that can be used like this:
* `bat cache -h` - Show help
* `bat cache --init` - Initialize cache from config dir
* `bat cache --clear` - Reset the cache
* `bat cache --config-dir` - Show config directory
* Update README
closes#44
Obiviously, as depicted below, bat command recognizes filename (R-language source code) as subcommand.
If this error doesn't come from my misuse, i'll fix it.
The text was updated successfully, but these errors were encountered: