https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79719
Bug ID: 79719 Summary: gcc --vers still outputs command line should be checked Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: jg at jguk dot org Target Milestone: --- I noticed that a few command line arguments still work, even if incomplete. Surely these should be rejected? Sorry my compiler is not the latest, could someone verify with latest please. $ gcc --vers gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gcc --ver gcc: error: unrecognized command line option ‘--ver’ gcc: fatal error: no input files compilation terminated. $ gcc --he Usage: gcc [options] file... Options: -pass-exit-codes Exit with highest error code from a phase --help Display this information --target-help Display target specific command line options --help={common|optimizers|params|target|warnings|[^]{joined|separate|undocumented}}[,...] Others work as expected: $ gcc -dumpspec gcc: fatal error: no input files compilation terminated.