comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Tell GPRBuild to trigger an error on unknown options in project file?
Date: Mon, 22 Apr 2013 23:25:49 +0200
Date: 2013-04-22T23:25:49+02:00	[thread overview]
Message-ID: <op.wvyohbhpule2fv@cardamome> (raw)

Hi people,

I don't like when something does not behave as expected without an error  
message, or the same, get silently ignored.

As an example, I just wanted to pass a `--target=…` option to GPRBuild in  
the Builder package of a project file, but it was silently ignored. I  
later noticed the documentation indeed list this as part of the options  
that may only be passed to GPRBuild's command line, and not in project  
files [1].

Now I know, but I still feel it would be better to get a plain error  
message (and compilation failure) when an option is passed via the Builder  
package which GPRBuild does not handle.

[1]: http://docs.adacore.com/gprbuild-docs/html/gprbuild_ug.html#Switches

-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



             reply	other threads:[~2013-04-22 21:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-22 21:25 Yannick Duchêne (Hibou57) [this message]
2013-04-23  7:37 ` Tell GPRBuild to trigger an error on unknown options in project file? Stephen Leake
2013-04-23  7:53   ` Yannick Duchêne (Hibou57)
2013-04-23 11:13     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox