gow -g expects script arguments when they are not required
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 906
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
gow -g is requiring that a command argument be passed, even if the script being called does not need them. Passing an empty argument seems to work around this, but it is not intuitive.
Example:
% cat script.sh
#!/bin/bash
echo "hello world"
% gow -g ./script.sh
"gow" is the missing watch mode for the "go" command.
Runs an arbitrary "go" subcommand, watches files, and restarts on changes.
Usage:
gow <gow_flags> <cmd> <cmd_flags> <cmd_args ...>
...
% gow -g ./script.sh ""
hello world
Contributor guide
No contributing guide indexed for this repository
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
Reproduce the issue with the commands shown in the report: gow -g ./script.sh and the workaround using an empty argument. Start at the CLI argument parsing and command execution entry points, then verify that a script requiring no arguments runs without the empty argument while existing command arguments still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100