#!/usr/bin/env node const args = require('commander') .command('fimfic2epub [filename]') .description(require('../package.json').description) .version(require('../package.json').version) .option('-d, --dir ', 'Directory to store ebook in. Is prepended to filename') .option('-t, --title ', 'Set the title of the story') .option('-a, --author ', 'Set the author of the story') .option('-c, --no-comments-link', 'Don\'t add link to online comments') .option('-H, --no-headings', 'Don\'t add headings to chapters') .option('-r, --no-reading-ease', 'Don\'t calculate Flesch reading ease') .option('-e, --no-external', 'Don\'t embed external resources, such as images (breaks EPUB spec)') .option('-n, --no-notes', 'Don\'t include author notes') .option('-i, --notes-index', 'Create an index with all author notes at the end of the ebook') .option('-p, --paragraphs