eth-p / eth-p/bat-extras

batman: add `--no-fallback` option

Open
#131 1 comment 0 reactions 0 assignees View on GitHub
batman enhancement help wanted
Dominant language
Shell
Stars
1.6k
Forks
95
PR merge metrics
No merged PRs in 30d

Description

If this is an existing feature, apologies! I couldn't find it. I'd go deep into my specific usecase and why this would benefit *me*, but I don't think that's necessary, as it's a fairly common-sense option.

Currently, a command like this: `batman git pasta` would fail to find a manpage for `git pasta`, and would then fallback to the manpage for `git`. However, this may not always be helpful. Sometimes, you didn't just want a general manpage, you wanted one for a specific subcommand. Rather than having to check if you're in the *right* manpage, it'd be nice to just see "No manual entry for pasta", and immediately know that the manpage doesn't exist.

Contributor guide

Open the contributing guide

Research direction

Start by locating the batman command's option parsing and the fallback behavior described in the issue. Exercise `batman git pasta` with and without the proposed `--no-fallback` option; done means the option reports no manual entry for `pasta` instead of falling back to the `git` manpage.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.