Sebastian Schuberth
04/19/2023, 9:21 PM--dry-run
flag. If it's specified, the output directory does not have to be specified (via -o
), but it can be specified (as it will not be written to anyway).AJ Alt
04/20/2023, 5:01 PMswitch()
, but for your case I would just do it in `run`: if (!dryRun && output == null) throw UsageError()
Sebastian Schuberth
04/20/2023, 5:36 PMrequired()
from output
obviously...