Skip to content

exfatlabel: Fix command line option parsing#215

Open
fdegros wants to merge 1 commit intorelan:masterfrom
fdegros:exfatlabel-option-parsing
Open

exfatlabel: Fix command line option parsing#215
fdegros wants to merge 1 commit intorelan:masterfrom
fdegros:exfatlabel-option-parsing

Conversation

@fdegros
Copy link
Copy Markdown

@fdegros fdegros commented Mar 12, 2026

Now, exfatlabel correctly understands the double hyphen -- POSIX delimiter. Any arguments following -- are treated as operands (e.g. a new volume name), even if they start with a hyphen -. This prevents a volume name like -V from being interpreted as an option in the following commands:

exfatlabel -- /dev/sda "-V"
exfatlabel /dev/sda -- "-V"

Bug: #213

Now, exfatlabel correctly understands the double hyphen `--` POSIX
delimiter. Any arguments following `--` are treated as operands (e.g. a
new volume name), even if they start with a hyphen `-`. This prevents a
volume name like `-V` from being interpreted as an option in the
following commands:

```
exfatlabel -- /dev/sda "-V"
exfatlabel /dev/sda -- "-V"
```

Bug: relan#213
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant