adjust: Allow any order of options when combining --hide-missing with options like --unlock.

optparse-applicative made this hard, the naive implementation this had
before didn't let --hide-missing come after --unlock. And just adding
additional <|> with --hide-missing coming after --unlock didn't work
either. So need to get some options and then combine them.
This commit is contained in:
Joey Hess 2024-10-21 16:03:29 -04:00
parent 2c14181bcb
commit bdf3a4747f
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 22 additions and 7 deletions

View file

@ -40,3 +40,5 @@ This is admittedly arguably consistent with https://git-annex.branchable.com/git
### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
Yes, I've been really happy using it to manage a bunch of videos, where I only need some on my laptop at any given time. Way better than my previous "manually scp things around" strategy.
> [[fixed|done]] --[[Joey]]

View file

@ -3,6 +3,5 @@
subject="""comment 1"""
date="2024-10-21T19:06:47Z"
content="""
This is not intentional behavior, and is surprising. I don't think an
applicative option parser should ever behave this way. Weird!
Surprising and unintentional! Fixed this.
"""]]