[Other] Unknown option '--domain-name'
Closed this issue · 7 comments
Additional Information
After running:
(base) ~% /Users/X/eligibility_util ./eligibility_util forceDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER --answer 4
The result gave:
Error: Unknown option '--domain-name'
Usage: eligibility_util
See 'eligibility_util --help' for more information.
Is there anyway to fix this? Much thanks.
I can't reproduce your issue with the latest eligibility_util
.
./eligibility_util forceDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER --answer 4
Force domain answer successfully
Suggestions:
- Redownload the latest version of
eligibility_util
- Try running
./eligibility_util --help
and./eligibility_util forceDomainAnswer --help
to see if you are missing anything.
./eligibility_util forceDomainAnswer --help
USAGE: eligibility_util forceDomainAnswer [--domain-name <domain-name>] [--domain <domain>] --answer <answer>
THE DOMAIN TO FORCE THE ANSWER FOR:
--domain-name <domain-name>
bool value
--domain <domain> string value
OPTIONS:
--answer <answer> The answer to force
-h, --help Show help information.
I can't reproduce your issue with the latest
eligibility_util
../eligibility_util forceDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER --answer 4 Force domain answer successfully
Suggestions:
- Redownload the latest version of
eligibility_util
- Try running
./eligibility_util --help
and./eligibility_util forceDomainAnswer --help
to see if you are missing anything../eligibility_util forceDomainAnswer --help USAGE: eligibility_util forceDomainAnswer [--domain-name <domain-name>] [--domain <domain>] --answer <answer> THE DOMAIN TO FORCE THE ANSWER FOR: --domain-name <domain-name> bool value --domain <domain> string value OPTIONS: --answer <answer> The answer to force -h, --help Show help information.
I've checked the file version, redownloaded it and ran again. Using command -help, the following is what I got.
% ./eligibility_util forceDomainAnswer --help
USAGE: eligibility_util forceDomainAnswer [--domain-name <domain-name>] [--domain <domain>] --answer <answer>
THE DOMAIN TO FORCE THE ANSWER FOR:
--domain-name <domain-name>
bool value
--domain <domain> string value
OPTIONS:
--answer <answer> The answer to force
-h, --help Show help information.
It would seem fine, but I still got
/Users/X/eligibility_util ./eligibility_util forceDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER --answer 4
Error: Unknown option '--domain-name'
Usage: eligibility_util <subcommand>
See 'eligibility_util --help' for more information.
Quite weird.
as i run this tools, always get error, bash dont work neither.
Please read the instruction here. @dont-see-big-shark
I can't reproduce your issue with the latest
eligibility_util
../eligibility_util forceDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER --answer 4 Force domain answer successfully
Suggestions:
- Redownload the latest version of
eligibility_util
- Try running
./eligibility_util --help
and./eligibility_util forceDomainAnswer --help
to see if you are missing anything../eligibility_util forceDomainAnswer --help USAGE: eligibility_util forceDomainAnswer [--domain-name <domain-name>] [--domain <domain>] --answer <answer> THE DOMAIN TO FORCE THE ANSWER FOR: --domain-name <domain-name> bool value --domain <domain> string value OPTIONS: --answer <answer> The answer to force -h, --help Show help information.
I've checked the file version, redownloaded it and ran again. Using command -help, the following is what I got.
% ./eligibility_util forceDomainAnswer --help USAGE: eligibility_util forceDomainAnswer [--domain-name <domain-name>] [--domain <domain>] --answer <answer> THE DOMAIN TO FORCE THE ANSWER FOR: --domain-name <domain-name> bool value --domain <domain> string value OPTIONS: --answer <answer> The answer to force -h, --help Show help information.
It would seem fine, but I still got
/Users/X/eligibility_util ./eligibility_util forceDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER --answer 4 Error: Unknown option '--domain-name' Usage: eligibility_util <subcommand> See 'eligibility_util --help' for more information.
Quite weird.
I do not know what's happening on your shell.
Some suggestions:
- Use a clean shell environment
- Save it as a shell script
xx.sh
and run it viabash ./xx.sh
- Build and debug it directly to see what's happening on ArgumentParser side / the actual input eligibility_util is receiving. See https://github.com/Kyle-Ye/eligibility/tree/main/eligibility_util
Close due to no active response.