summaryrefslogtreecommitdiff
path: root/_action/checksinglestore.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2014-10-15 22:27:57 +0200
committerAnthon van der Neut <anthon@mnt.org>2014-10-15 22:27:57 +0200
commit59dfe13f5b31a4160fb0365dfab0c74d674b1e3b (patch)
tree01698e6033dd1d806ed3e238dfb2d2ecf1acf8a5 /_action/checksinglestore.py
parent937fd83a0cf7fc443843a09ac05759c6a3ec6d1c (diff)
downloadruamel.std.argparse-59dfe13f5b31a4160fb0365dfab0c74d674b1e3b.tar.gz
added documentation and example programs
Diffstat (limited to '_action/checksinglestore.py')
-rw-r--r--_action/checksinglestore.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/_action/checksinglestore.py b/_action/checksinglestore.py
index 27d5cc8..11fd80c 100644
--- a/_action/checksinglestore.py
+++ b/_action/checksinglestore.py
@@ -11,6 +11,8 @@ class CheckSingleStoreAction(argparse.Action):
if getattr(namespace, self.dest, None) is not None:
print(
'WARNING: previous optional argument "' + option_string + " " +
- getattr(namespace, self.dest) + '" overwritten by "' +
- option_string + " " + values + '"')
+ str(getattr(namespace, self.dest)) + '" overwritten by "' +
+ str(option_string) +
+ " " + str(values) +
+ '"')
setattr(namespace, self.dest, values)