roman / Haskell-etc

Declarative configuration spec for Haskell projects
MIT License
47 stars 7 forks source link

Throw error when same option is used in multiple entries #66

Open roman opened 6 years ago

roman commented 6 years ago

Context

When specifying multiple entries in a configuration map with the same CLI configuration, a warning or error should be displayed

Input

hello:
  etc/spec:
    cli:
      input: option
      long: hello
      command:
      - one
hola:
  etc/spec:
    cli:
      input: option
      long: hello
      command:
      - one

Both hello and hola have the exact same CLI configuration, this should throw an error