diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-04-26 09:34:23 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-04-26 09:42:21 +0200 |
commit | a6ceb00b8bc466049610f1f3777ca02f2e12fc6e (patch) | |
tree | 8c87271c7d9a14ad26762d424b3447b88f43e755 /gbp | |
parent | 3da92ba2c33074f814309d89fec14d18b6bff269 (diff) |
config: when printing a single value only print the value
This is more in line with what `git config` does and eases usage in
scripts.
Diffstat (limited to 'gbp')
-rwxr-xr-x | gbp/scripts/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/scripts/config.py b/gbp/scripts/config.py index a0d66ca6..e988748c 100755 --- a/gbp/scripts/config.py +++ b/gbp/scripts/config.py @@ -69,7 +69,7 @@ def build_cmd_parser(section): def print_single_option(parser, option, printer): value = parser.get_config_file_value(option) if value is not None: - printer("%s.%s=%s" % (parser.command, option, value)) + printer("%s" % value) else: return 2 return 0 |