mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-27 10:18:12 +00:00
fb38ba579f
Ref: https://github.com/EFForg/https-everywhere/tree/master/utils/rewriter ```Shell ~/src/EFForg/https-everywhere/utils/rewriter/rewriter.js . ``` A few changes were reset/fixed manually before the commit.
15 lines
645 B
HTML
15 lines
645 B
HTML
Positional Arguments and Options: Order matters
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Borg only supports taking options (``-s`` and ``--progress`` 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 create -s --progress repo::archive path # good and preferred
|
|
borg create repo::archive path -s --progress # also works
|
|
borg create -s repo::archive path --progress # works, but ugly
|
|
borg create repo::archive -s --progress path # BAD
|
|
|
|
This is due to a problem in the argparse module: https://bugs.python.org/issue15112
|