diff --git a/CliClient/app/command-export.js b/CliClient/app/command-export.js index b8e364714..40b60a919 100644 --- a/CliClient/app/command-export.js +++ b/CliClient/app/command-export.js @@ -17,7 +17,7 @@ class Command extends BaseCommand { const service = new InteropService(); const formats = service .modules() - .filter((m) => m.type === 'exporter') + .filter((m) => m.type === 'exporter' && m.format !== 'html') .map((m) => m.format + (m.description ? ` (${m.description})` : '')); return [['--format ', _('Destination format: %s', formats.join(', '))], ['--note ', _('Exports only the given note.')], ['--notebook ', _('Exports only the given notebook.')]]; @@ -29,6 +29,8 @@ class Command extends BaseCommand { exportOptions.format = args.options.format ? args.options.format : 'jex'; + if (exportOptions.format === 'html') throw new Error('HTML export is not supported. Please use the desktop application.'); + if (args.options.note) { const notes = await app().loadItems(BaseModel.TYPE_NOTE, args.options.note, { parent: app().currentFolder() }); if (!notes.length) throw new Error(_('Cannot find "%s".', args.options.note));