[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-build-common] branch master updated: fix default
From: |
gnunet |
Subject: |
[taler-build-common] branch master updated: fix default |
Date: |
Tue, 04 May 2021 20:48:30 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository build-common.
The following commit(s) were added to refs/heads/master by this push:
new 5fb2f81 fix default
5fb2f81 is described below
commit 5fb2f811026bbe7152ed59b712248048853eb0f6
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue May 4 20:48:28 2021 +0200
fix default
---
talerbuildconfig.py | 2 +-
testconfigure.py | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/talerbuildconfig.py b/talerbuildconfig.py
index ab3ec4a..f6dba99 100644
--- a/talerbuildconfig.py
+++ b/talerbuildconfig.py
@@ -194,7 +194,7 @@ class Option(Plugin):
print(f"required option '--{self.optname}' missing")
sys.exit(1)
else:
- arg = default
+ arg = self.default
self._arg = arg
def get_configmk(self, buildconfig):
diff --git a/testconfigure.py b/testconfigure.py
index 46645f4..047e8b0 100644
--- a/testconfigure.py
+++ b/testconfigure.py
@@ -12,4 +12,5 @@ b.add_tool(PosixTool("find"))
b.add_tool(PosixTool("xargs"))
b.add_tool(PosixTool("msgmerge"))
b.use(Option("foo", help="What is foo?"))
+b.use(Option("bar", help="What is bar?", required=False, default="42"))
b.run()
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-build-common] branch master updated: fix default,
gnunet <=