Answer the question
In order to leave comments, you need to log in
The behavior of the program depends on the order of the parameters. Will it take off?
There is a parser.
Parameters specify what exactly to parse.
Wanting to give the user the ability to choose the output sequence of parsed data, I made the following decision:
The output sequence is indicated by the sequence of parameters.
The parameters themselves, of course, do not change their meaning from the position.
What do you think? Will it take off?
Answer the question
In order to leave comments, you need to log in
Somehow it's not obvious. Unix does not do this. At least I have not met. And I would be embarrassed if the output suddenly changed from the order.
I would make a separate parameter like --output-format
Not the best idea - get confused, wrap everything in an object or output format string.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question