mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-15 10:56:30 +00:00
16 lines
644 B
PHP
16 lines
644 B
PHP
|
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: http://bugs.python.org/issue15112
|