bug: task help generation via option() doesn't work
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
Repro
const { task, logger, option, argv } = require('just-task');
option('name', {describe: 'user name or something'});
task('blimey', 'An exclamation of surprise.', function() {
logger.info(`blimey! ${argv().name}`);
});
Actual behaviour
Basically --help output always invokes yargs default help command.
just --help

just blimey --help

Expected behaviour
just blimey --help
Options:
--name user name or something [string]
--help Show help [boolean]
--version Show version number [boolean]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the reported just blimey --help reproduction and tracing how option() registrations reach help generation. The fix is done when task-specific options such as --name, along with help and version entries, appear instead of only the default help output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100