Skip to content
Snippets Groups Projects
Commit 3fa0d2f2 authored by Profpatsch's avatar Profpatsch
Browse files

Action/Generate: Best effort warnings when flags are ignored

The command line parser accepts any flags in `generate`, but no
warning is shown if user instructions are ignored.

This is a best-effort way of warning if a flag would be ignored,
making it more user-friendly.

Ideally, this would be done before starting work, but I don’t see a
good way to patch it into the command line parser; maybe by having an
intermediate parsing step that parses into an ADT first and throws
warnings for ignored arguments.

Another case I saw is that “--haskell” and “--frege” can both be set,
but “--haskell” will always be ignored.
parent 6067c110
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment