Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

explain key=value argument parsing failures #910

Merged
merged 2 commits into from
May 21, 2021

Conversation

bmc-msft
Copy link
Contributor

As demonstrated in #906, failures in parsing key-value options is not obvious. This explains the failure in a slightly less obtuse fashion.

@bmc-msft bmc-msft linked an issue May 21, 2021 that may be closed by this pull request
@bmc-msft bmc-msft merged commit e7197f1 into microsoft:main May 21, 2021
@bmc-msft bmc-msft deleted the explain-keyvalue-parse-failures branch May 21, 2021 17:44
ghost pushed a commit that referenced this pull request May 24, 2021
Catch argparse argument type errors and display them in a simplified fashion.

As an example, this is how the output is rendered.
```
❯ onefuzz template libfuzzer basic --target_env  ASAN_OPTIONS=allocator_may_return_null=1 a a a linux
unable to parse arguments: unable to parse value as a key=value pair: 'a'   
❯
```

Note, this builds upon #910.
@ghost ghost locked as resolved and limited conversation to collaborators Jun 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

target_env argument parsing has undocumented usage constraints
3 participants