comp.lang.ada
 help / color / mirror / Atom feed
* Tell GPRBuild to trigger an error on unknown options in project file?
@ 2013-04-22 21:25 Yannick Duchêne (Hibou57)
  2013-04-23  7:37 ` Stephen Leake
  0 siblings, 1 reply; 4+ messages in thread
From: Yannick Duchêne (Hibou57) @ 2013-04-22 21:25 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-23 11:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-22 21:25 Tell GPRBuild to trigger an error on unknown options in project file? Yannick Duchêne (Hibou57)
2013-04-23  7:37 ` Stephen Leake
2013-04-23  7:53   ` Yannick Duchêne (Hibou57)
2013-04-23 11:13     ` Simon Wright

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