That's not what the OP wants. He wants to be able to specify 'nd' for -input (or not), and again for data (or not).
Your solution only permits specifying it once (although it could be changed to counted), and it's not associated with "input" or "data".
In reply to Re^6: Dynamic option
by ikegami
in thread Dynamic option
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |