Open thatplguy opened 3 months ago
To fix this we probably should update the file
definition in Common_flags
/ main.ml
to follow this approach: https://github.com/mjambon/cmdliner-cheatsheet?tab=readme-ov-file#any-number-of-anonymous-arguments-defaulting-to-non-empty-list
Problem
cn verify f1.c f2.c
will attempt to verifyf2.c
and ignoref1.c
.Expected behavior
Either require that exactly one file be listed on the command line and fail otherwise, or attempt to verify all files.
How to reproduce
CN version: git-b73624664 [2024-08-21 18:11:18 -0700]
f1.c
f2.c
CLI command
Output