[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU standards: What should happen with illegal option?

From: Jeffrey Walton
Subject: GNU standards: What should happen with illegal option?
Date: Wed, 21 Jun 2017 21:31:22 -0400

The GNU standard for --version and --help says the program should
write to standard output and exit with success. Cf.,

What happens with an illegal option that the program rejects and
exits? Does the message get written to standard output or standard
error? Should the program exit with an error? (I'm fairly certain it
should exit with an error, but I can't tell where the message should
be printed).

If the information could be added to
then it would be greatly appreciated.

Jeffrey Walton
Baltimore, MD, US

reply via email to

[Prev in Thread] Current Thread [Next in Thread]