<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Sebastian,</div><div><br></div><div><div>On Sep 12, 2011, at 4:24 AM, Sebastian Fischer wrote:</div><blockquote type="cite"><div>&nbsp; &nbsp;<a href="https://github.com/sebfisch/haskell-barchart/blob/v0.1.1.1/src/barchart.hs">https://github.com/sebfisch/haskell-barchart/blob/v0.1.1.1/src/barchart.hs</a><br><br>for an example of different modes that share most but not all of their<br>options. IIRC, it works because in the list of exec modes later items<br>inherit from previous items what they do not define themselves.<br></div></blockquote><div><br></div><div>Is that because of&nbsp;<span class="o" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: bold; color: rgb(0, 0, 0); font-family: 'Bitstream Vera Sans Mono', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">&amp;=</span><span style="color: rgb(0, 0, 0); font-family: 'Bitstream Vera Sans Mono', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; "> </span><span class="n" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(0, 0, 0); font-family: 'Bitstream Vera Sans Mono', Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">auto </span>?</div><div><br></div><div>I override a default record for each mode as you see at&nbsp;<a href="http://joyful.com/darcsden/simon/hledger/hledger/Hledger/Cli/Options.hs#L-49">http://joyful.com/darcsden/simon/hledger/hledger/Hledger/Cli/Options.hs#L-49</a>&nbsp;. At first guess I would say the end result is the same, but maybe not.&nbsp;&nbsp;Thanks for the example.</div><div><br></div><div>-Simon</div></div></body></html>