Summary
lg fetch and lg sync always send video_book=true because the CLI only exposes a --video-book flag with a default of true. There is no matching --no-video-book, so disabling the filter is impossible.
Steps to Reproduce
- Run
node lg.mjs fetch --enrollment fake --no-video-book.
- Commander throws
error: unknown option '--no-video-book'.
Expected Result
Users should be able to opt out of the video book filter, e.g. with --no-video-book.
Actual Result
The command exits before running, so there is no way to request reports without video book content.
Additional Context
The option is defined in lg.mjs (lines ~88 and ~142). Commander only generates the negative form if we register it explicitly. Adding .option("--no-video-book", "skip adding video_book=true") (and handling the boolean in the action) would unblock the scenario.
Summary
lg fetchandlg syncalways sendvideo_book=truebecause the CLI only exposes a--video-bookflag with a default oftrue. There is no matching--no-video-book, so disabling the filter is impossible.Steps to Reproduce
node lg.mjs fetch --enrollment fake --no-video-book.error: unknown option '--no-video-book'.Expected Result
Users should be able to opt out of the video book filter, e.g. with
--no-video-book.Actual Result
The command exits before running, so there is no way to request reports without video book content.
Additional Context
The option is defined in
lg.mjs(lines ~88 and ~142). Commander only generates the negative form if we register it explicitly. Adding.option("--no-video-book", "skip adding video_book=true")(and handling the boolean in the action) would unblock the scenario.