ifrost / afterwriting-labs

Post-processing for Fountain screenplays
http://www.afterwriting.com
226 stars 38 forks source link

Override config from command line #112

Closed gabrielmontagne closed 4 years ago

gabrielmontagne commented 4 years ago

This project is great. Amazing stuff.

I'm switching from a clunky fountain -> LaTeX -> pdf workflow to this. I love it!

But it'd be great if elements from the config file could be overriden as command line arguments, for example, title page notes, watermarks, etc. for versions and dates. A bit like asciidoc(tor) does, -a, --attribute=ATTRIBUTE .

This would help a lot on Makefile type workflows like mine.

gabrielmontagne commented 4 years ago

Could be done, as well, using environment variables.

ifrost commented 4 years ago

It's available in version 1.12.5 (https://www.npmjs.com/package/afterwriting/v/1.12.5). Please check https://github.com/ifrost/afterwriting-labs/blob/master/docs/clients.md for usage.

rnkn commented 4 years ago

This is great news. Love your work.

rnkn commented 4 years ago

Just wanted to add that I’m in the process of making afterwriting the default export option for Fountain Mode for Emacs, and having these CLI switches make for a much nicer/smoother user experience in my view:

Screen Shot 2020-01-14 at 1 02 55 pm

May I ask why you opted for --setting ATTRIBUTE=VALUE rather than --ATTRIBUTE=VALUE? I assume there’s a technical reason so I’m just curious...