If I run `git annex adjust --hide-missing --unlock`, that works. If I run `git annex adjust --unlock --hide-missing`, that tells me "Invalid option '--hide-missing'" and prints the whole list of git-annex commands (which itself makes it hard to see the more useful error). I would expect that the order of the options doesn't matter, and if it does, I'd get a `git annex adjust` specific usage message.
2024-07-21 18:14:03 +00:00
### What steps will reproduce the problem?
```
$ git annex adjust --unlock --hide-missing
Invalid option `--hide-missing'
Usage: git-annex COMMAND
[...]
$ git annex adjust --hide-missing --unlock
git-annex: Not in a git repository.
```
2024-07-21 18:14:28 +00:00
(Yes, I've also tried this in a git repo. That doesn't seem to change the error the first (IMO buggy) command gives, though obviously the second command gives different results.)
2024-07-21 18:14:03 +00:00
### What version of git-annex are you using? On what operating system?
Same behavior occurs in `git annex` 10.20230926 with Nix-On-Droid (https://git-annex.branchable.com/Android/#index2h2) (which is where I actually want to use this, but is harder to file a bug from).
### Please provide any additional information below.
2024-07-21 18:17:25 +00:00
This is admittedly arguably consistent with https://git-annex.branchable.com/git-annex-adjust/, which suggests `git annex adjust --unlock|--lock|--fix|--hide-missing [--unlock|--lock|--fix]|--unlock-present` as the syntax (notably with `--unlock` after `--hide-missing`), but it's pretty unusual for a Linux command, and even if the decision is made to have one order be an error, the error message should be easier to understand.
2024-07-21 18:14:03 +00:00
### 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.