4 import docutils_nest
.nest_utils
5 import docutils_nest
.rst_options
12 opt_obj
= docutils_nest
.rst_options
.OptionsRst(sys
.argv
, options_dict
)
13 inline_opts
, args
, doc_opts
= opt_obj
.parse_options()
16 sys
.stderr
.write('Script will now quite because of illegal options\n')
21 sys
.stderr
.write('You must provide a file for the script to convert.\n'
22 'Script will now quit'
25 output
= inline_opts
.get('output')
27 sys
.stderr
.write('You must provide an output option for the script to work\n'
28 'Script will now quit\n'
31 convert_obj
= docutils_nest
.nest_utils
.RstWithInline(file, output
, docutils_opts
= doc_opts
)
34 if __name__
== '__main__':