Add orthogonal edges feature.#48
Conversation
|
How does this interact with |
|
Good question… I had not thought this through. It does make sense to have a three-way toggle! Let me fix this. |
239d1d4 to
a18693a
Compare
|
Three-way toggle installed! |
a18693a to
c58ac2d
Compare
|
Ah, I think we should probably write the parser similar to this: https://github.com/jonascarpay/calligraphy/blob/master/src/Calligraphy.hs#L166-L171, that way, the CLI will automatically document the possible flags. Does that make sense or was there a particular reason you did it this way? |
|
This is a deep question. In the ideal world, I do not think adding a bunch of mutually exclusive flags is the right approach, because generally the expectation is that separate flags can be set independently from one another. When we want to telegraph that several flags are mutually exclusive, we make an option instead. What I am doing is a common approach. Here is an example of a That said, I can do it your way as well. It is up to you to decide! |
|
I agree neither way is ideal. Let's stick to your way, but then please add the accepted values to the help text and/or the error message |
c58ac2d to
37122c4
Compare
|
I added the accepted values to the help text and to the error message. |
|
I forgot to update the change log… See #51. |
Closes #42.