Commit 8e91667a authored by Emmanuel Garette's avatar Emmanuel Garette

update README examples

parent 727e8e86
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment