Closed moll closed 6 years ago
Hi,
nanoc live
doesn’t pass options to nanoc view
. It always has live-reloading enabled, so there’s no need to pass --live-reload
.
Am I correct when I say that your confusion is caused by the following:
DESCRIPTION
Starts the live recompiler along with the static web server. [snip]
If so, I think a better description might be
DESCRIPTION
Starts the live recompiler, along with a web server with live-reloading enabled. [snip]
What do you think?
Oh, my bad — I am confusing the nanoc live
command provided by guard-nanoc and the nanoc live
command provided by the nanoc-live
gem (pre-release only for now).
Options are meant to be passed through, so this is indeed incorrect.
This is fixed in 2.1.3, just released!
Great! Thank you!
Hey,
From the output of
--help
, I believenanoc live
intended to pass its arguments tonanoc view
, however for--live-reload
it still throws an error about an illegal option. It's probably more future proof to pass unrecognized args all through as I'd probably forget to updatenanoc live
's opt parser as well if I were improvingnanoc view
. :P