I’m not sure why, but recently when I try to run:
kopia snapshot list --all
I get the error
kopia.exe: error: flag ‘show-identical’ cannot be repeated, try --help
I’m not sure why, but recently when I try to run:
kopia snapshot list --all
I get the error
kopia.exe: error: flag ‘show-identical’ cannot be repeated, try --help
Are you sure you used --all
and not -all
? As with the latter it is what happens as it means:
-a -l -l
which means:
--all --show-identical --show-identical
.
I tried again and I must have had a typo, --all works.
And thank you, this is the first time I have understood the true meaning of ‘-’ vs. ‘–’, I wasn’t aware that ‘-’ offers passing multiple single character flags together!
I learnt it hard way too:) And your example can be truly confusing indeed.
Kopia is using typical Unix convention where --
is descriptive flag (e.g. --help
) and -
short flag version (e.g. -h
). In addition several short options can be joined together, using only a single -
prefix