Phat0101 / Roster

https://class-connect-wrv3.vercel.app
0 stars 0 forks source link

add commandline parameters for generate.js for startDate and weeks #10

Closed alfski closed 3 months ago

alfski commented 4 months ago

Use one of the getopt node libraries to add support for command-line parameters/arguments when running generate.js

eg. ./generate.js --startDate="2024-05-06" --weeks=12

if weeks isn't specified can default to 16. check weeks is a reasonable number, say integer between 1 & 52

if startDate isn't specified... can just use a hard-coded default.

The startDate and roster length should probably be printed to console when generate is run.