diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-02-25 19:06:29 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-02-25 19:06:29 +0000 |
commit | 02acd50af6ad4d5bbeb594a386463aeb01bbd943 (patch) | |
tree | d6fdd8cc6465ff1b5b799baa49ba81bb2db2c1a9 | |
parent | 255de4f87a1660dbf2c4e41034cf9cc37c405dd9 (diff) | |
download | obnam-02acd50af6ad4d5bbeb594a386463aeb01bbd943.tar.gz |
Add --lock-timeout option
-rw-r--r-- | obnamlib/app.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/obnamlib/app.py b/obnamlib/app.py index 4145a244..dd0c19a1 100644 --- a/obnamlib/app.py +++ b/obnamlib/app.py @@ -84,6 +84,12 @@ class App(cliapp.Application): 'this is only useful for testing purposes', metavar='TIMESTAMP') + self.settings.integer(['lock-timeout'], + 'when locking in the backup repository, ' + 'wait TIMEOUT seconds for an existing lock ' + 'to go away before giving up', + metavar='TIMEOUT') + # The following needs to be done here, because it needs # to be done before option processing. This is a bit ugly, # but the best we can do with the current cliapp structure. |