From c6f7dc82067ebc5fde13abec74f2facad017599a Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 28 Jan 2019 11:44:50 +0100 Subject: [PATCH] update README examples --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5e11f3e..369e649 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,8 @@ from tiramisu import IntOption, StrOption, BoolOption, ChoiceOption, \ choiceoption = ChoiceOption('cmd', 'choice the sub argument', ('str', 'list', 'int'), - properties=('mandatory', - 'positional')) + properties=('mandatory',)) +# 'positional')) # * a boolean to pass script in verbosity mode with argument -v --verbosity booloption = BoolOption('verbosity', 'increase output verbosity', @@ -60,9 +60,7 @@ config = Config(OptionDescription('root', int_ ])) # initialise the parser -parser = TiramisuCmdlineParser() -# add the config to parser -parser.add_arguments(config) +parser = TiramisuCmdlineParser(config) # parse arguments of current script parser.parse_args() # now, print the result