1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 08:16:54 +00:00

Fix usage.rst syntax

This commit is contained in:
Jonas Borgström 2013-07-05 15:49:07 +02:00
parent 701a940de7
commit 0c1d6e8179
2 changed files with 9 additions and 8 deletions

View file

@ -1,6 +1,7 @@
#!/usr/bin/bash
echo -n > usage.rst
for cmd in init create extract delete prune verify change-passphrase; do
echo -e ".. _usage_darc_$cmd:\n\ndarc $cmd\n~~~~~~\n::\n" >> usage.rst
LINE=`echo -n darc $cmd | tr 'a-z ' '~'`
echo -e ".. _usage_darc_$cmd:\n\ndarc $cmd\n$LINE\n::\n" >> usage.rst
darc $cmd -h >> usage.rst
done

View file

@ -1,7 +1,7 @@
.. _usage_darc_init:
darc init
~~~~~~
~~~~~~~~~
::
usage: darc init [-h] [-v] [--key-file] [--passphrase] repository
@ -19,7 +19,7 @@ optional arguments:
.. _usage_darc_create:
darc create
~~~~~~
~~~~~~~~~~~
::
usage: darc create [-h] [-v] [-s] [-e PATTERN] [-c SECONDS]
@ -46,7 +46,7 @@ optional arguments:
.. _usage_darc_extract:
darc extract
~~~~~~
~~~~~~~~~~~~
::
usage: darc extract [-h] [-v] [-e PATTERN] [--numeric-owner]
@ -67,7 +67,7 @@ optional arguments:
.. _usage_darc_delete:
darc delete
~~~~~~
~~~~~~~~~~~
::
usage: darc delete [-h] [-v] ARCHIVE
@ -83,7 +83,7 @@ optional arguments:
.. _usage_darc_prune:
darc prune
~~~~~~
~~~~~~~~~~
::
usage: darc prune [-h] [-v] [-H HOURLY] [-d DAILY] [-w WEEKLY] [-m MONTHLY]
@ -113,7 +113,7 @@ optional arguments:
.. _usage_darc_verify:
darc verify
~~~~~~
~~~~~~~~~~~
::
usage: darc verify [-h] [-v] [-e PATTERN] ARCHIVE [PATH [PATH ...]]
@ -132,7 +132,7 @@ optional arguments:
.. _usage_darc_change-passphrase:
darc change-passphrase
~~~~~~
~~~~~~~~~~~-~~~~~~~~~~
::
usage: darc change-passphrase [-h] [-v] repository