Update usage strings to put flags before args

The standard UNIX-style ordering of command-line arguments places
optional flags before other positional arguments. All of restic's
commands support this ordering, but some of the usage strings showed the
flags after the positional arguments (which restic also parses just
fine). This change updates the doc strings to reflect the standard
ordering.

Because the `restic help` command comes directly from Cobra, there does
not appear to be a way to update the argument ordering in its usage
string, so it maintains the non-standard ordering (positional arguments
before optional flags).
This commit is contained in:
Jason Cox
2020-08-27 03:29:43 +00:00
parent eb7c00387c
commit 2447f3f110
7 changed files with 7 additions and 7 deletions

View File

@@ -292,7 +292,7 @@ Restic can write out man pages and bash/zsh compatible autocompletion scripts:
and the auto-completion files for bash and zsh).
Usage:
restic generate [command] [flags]
restic generate [flags] [command]
Flags:
--bash-completion file write bash completion file