Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can command line switches be combined?

combined Command line switches
0
Posted

Can command line switches be combined?

0

• -p and -a will not appear together (although you could just pick one arbitarily). • Any subset of the following options can occur: -p, -i, -o and -w (in any order). • Any subset of the following options can occur: -a, -i, -o and -w (in any order). • Options won’t be combined together into a single switch, (as in -pi). • You should print out errors for unknown switches in the order processed, but otherwise ignore them. For example: if the input where hexdump -z -ma -p -i foo.name you should output: Unknown switch: -z Unknown switch: -ma 00 00 00 00 00 00 01 00 2E 64 79 6E 73 79 6D 00 2E 72 65 6C 2E 64 79 6E Total bytes: 24 Many UNIX utilities tend to abort when there are unknown switches, so this is somewhat non-standard behavior to ignore unknown switches. The error messages are printed just so we can tell they are there. Note that: • Switches are case sensitive. That is, -p and -P are not the same switch. • You can assume that a valid switch will have the correct number of arguments

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123