tomglvng / kobo-annotations-exporter

Export your annotations from your Kobo reader in a more readeable format.
MIT License
11 stars 1 forks source link

Handle export format in another way #3

Closed tomglvng closed 3 years ago

tomglvng commented 3 years ago

The following code


        if self.export_format == 'word':
            WordExporter.export(annotations, self.export_directory)
        elif self.export_format == 'text':
            TextExporter.export(annotations, self.export_directory)
        else:
            ConsoleExporter.export(annotations)

is not ok. Need to refactor it !

tomglvng commented 3 years ago

https://docs.python.org/3/library/argparse.html