llvm / llvm/llvm-project

LLDB rejects arguments properties with a dash when using `settings set`

Open
#171,493 4 comments 0 reactions 0 assignees View on GitHub
lldb
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

```
(lldb) settings set target.run-args -foo bar
˄˜˜˜
╰─ error: unknown or ambiguous option
(lldb) settings set target.run-args "-foo"
˄˜˜˜
╰─ error: unknown or ambiguous option
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the two `settings set target.run-args` commands shown in the issue and inspect LLDB's command parsing for settings values beginning with a dash. Trace how `target.run-args` arguments are parsed, then verify that both quoted and unquoted dash-prefixed values are accepted without the unknown-or-ambiguous-option error.

Written by the indexing model from the issue text.

Assessment

Domain
cli, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.