Simon-Initiative / course-digest

Tool to produce a summary or digest of OLI course package contents
MIT License
2 stars 0 forks source link

command line convenience tweaks #126

Closed andersweinstein closed 1 year ago

andersweinstein commented 1 year ago

Minor tweaks for more convenient command line. Primarily for developer use when repeatedly testing:

--inputDir may be abbreviated -i; arg may be relative path.

--outputDir may be abbreviated -o

--operation may be omitted, defaults to convert

--quiet, -q [new option] suppresses prompts and does not zip or upload

Also CHANGES output naming: outputDir if omitted defaults to ${inputDir}-out zip file named as ${outputDir}.zip

Together this makes it possible to type simply npm run start -- -i courseDir to convert a course, leaving courseDir-out and optionally courseDir-out.zip file alongside courseDir in directory tree and npm run start -- -qi courseDir to convert only without prompting for input.