We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This issue was originally filed by @hoylen
What steps will reproduce the problem?
dart bin/test-args-hyphen.dart -t -32
What is the expected output? What do you see instead?
Expected: Temperature is: -32
Got: FormatException: Missing argument for "temperature".
It treats the option argument as another option instead of the argument to the "-t" option.
What version of the product are you using?
1.8.3
On what operating system?
linux_x64
Please provide any additional information below.
// Test program
import 'package:args/args.dart';
void main(List<String> arguments) {
var parser = new ArgParser(allowTrailingOptions: true); parser.addOption('temperature', abbr: 't', help: 'degrees');
var results = parser.parse(arguments);
print("Temperature is: ${results['temperature']}");; }
//EOF
The text was updated successfully, but these errors were encountered:
Added Pkg-Args, Area-Pkg, Triaged labels.
Sorry, something went wrong.
This issue has been moved to dart-lang/args#36.
No branches or pull requests
This issue was originally filed by @hoylen
What steps will reproduce the problem?
dart bin/test-args-hyphen.dart -t -32
What is the expected output? What do you see instead?
Expected: Temperature is: -32
Got: FormatException: Missing argument for "temperature".
It treats the option argument as another option instead of the argument to the "-t" option.
What version of the product are you using?
1.8.3
On what operating system?
linux_x64
Please provide any additional information below.
// Test program
import 'package:args/args.dart';
void main(List<String> arguments) {
var parser = new ArgParser(allowTrailingOptions: true);
parser.addOption('temperature', abbr: 't', help: 'degrees');
var results = parser.parse(arguments);
print("Temperature is: ${results['temperature']}");;
}
//EOF
The text was updated successfully, but these errors were encountered: