diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-12-23 09:44:31 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-12-23 10:17:17 +0200 |
commit | 15ce048ca21ad517e27ab598d861ae07f817067d (patch) | |
tree | 01857ffa023c770164a9cc07d1024ed388150864 /subplot/client.py | |
parent | d6584921d8bb77fd4de8b6997848599cb9d73e01 (diff) | |
download | obnam2-15ce048ca21ad517e27ab598d861ae07f817067d.tar.gz |
feat! add a global --config option
This breaks all invocations of the Obnam client, as the option needs
to come before the subcommand name.
The benefit of this breakage is simpler, less repetitive code.
Diffstat (limited to 'subplot/client.py')
-rw-r--r-- | subplot/client.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/subplot/client.py b/subplot/client.py index d89b7d4..1dcbe8c 100644 --- a/subplot/client.py +++ b/subplot/client.py @@ -28,7 +28,17 @@ def run_obnam_restore(ctx, filename=None, genid=None, todir=None): genid = ctx["vars"][genid] runcmd_run( - ctx, ["env", "RUST_LOG=obnam", "obnam", "restore", filename, genid, todir] + ctx, + [ + "env", + "RUST_LOG=obnam", + "obnam", + "--config", + filename, + "restore", + genid, + todir, + ], ) |