aiee

Python modules for common command line interfacing utils
git clone git://git.defalsify.org/aiee.git
Log | Files | Refs | LICENSE

commit fb7b82b429a95bdc80846c293a3eed409d25e920
parent ec20ebf7684a9d77fd3339f0ab0bbbd6915920a6
Author: lash <dev@holbrook.no>
Date:   Wed, 11 May 2022 11:40:04 +0000

Add type setting for arg

Diffstat:
Mtests/test_arg.py | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tests/test_arg.py b/tests/test_arg.py @@ -44,7 +44,14 @@ class TestArg(unittest.TestCase): self.assertEqual(r[1], '--yy') self.assertEqual(r[2], 'yyyyy') - + + def test_arg_multi(self): + flag = ArgFlag() + flag.add('foo') + + arg = Arg(flag) + arg.set('x', 'foo') + arg.set('y', 'foo') def test_arg_iter(self): flags = ArgFlag()