http://qs321.pair.com?node_id=893557


in reply to Re^5: Dynamic option
in thread Dynamic option

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".