diff options
author | Anthon van der Neut <anthon@mnt.org> | 2014-10-15 22:27:57 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2014-10-15 22:27:57 +0200 |
commit | 59dfe13f5b31a4160fb0365dfab0c74d674b1e3b (patch) | |
tree | 01698e6033dd1d806ed3e238dfb2d2ecf1acf8a5 /_action/checksinglestore.py | |
parent | 937fd83a0cf7fc443843a09ac05759c6a3ec6d1c (diff) | |
download | ruamel.std.argparse-59dfe13f5b31a4160fb0365dfab0c74d674b1e3b.tar.gz |
added documentation and example programs
Diffstat (limited to '_action/checksinglestore.py')
-rw-r--r-- | _action/checksinglestore.py | 6 |
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) |