zilch-lang / nstar

The compiler for N⋆, a statically typed assembly language used as a compiler backend for Zilch
BSD 3-Clause "New" or "Revised" License
29 stars 2 forks source link

Implement a CLI flag handling skeleton #24

Closed Mesabloo closed 4 years ago

Mesabloo commented 4 years ago

Resolves #15

This PR implements a simple template on which it should be fairly easy to add specific command-line flags like -W<some warning name>. Only -fcolor-diagnostics=yes|no is implemented at the moment (with all the checks it needs), whose purpose is only to indicate whether we want colors in diagnostics or not.