mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
docs: document good and problematic option placements, see #3356
This commit is contained in:
parent
dab45ced20
commit
8db5d1ba90
1 changed files with 17 additions and 0 deletions
|
|
@ -12,6 +12,23 @@ command in detail.
|
|||
General
|
||||
-------
|
||||
|
||||
Positional Arguments and Options: Order matters
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Borg only supports taking options (``-v`` and ``--list`` in the example)
|
||||
to the left or right of all positional arguments (``repo::archive`` and ``path``
|
||||
in the example), but not in between them:
|
||||
|
||||
::
|
||||
|
||||
borg extract -v --list repo::archive path # good and preferred
|
||||
borg extract repo::archive path -v --list # also works
|
||||
borg extract -v repo::archive path --list # works, but ugly
|
||||
borg extract repo::archive -v --list path # BAD
|
||||
|
||||
This is due to a problem in the argparse module: http://bugs.python.org/issue15112
|
||||
|
||||
|
||||
Repository URLs
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue