Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2013-07

compiler switches machine readable

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi,

Lazarus wants to show all available switches of the currently selected fpc.
It would be nice if the compiler could output all options. Something like the -h option, but in a machine readable format.

How difficult is it to implement that?

Mattias

Reply by email

Jonas Maebe
to Mattias Gaertner
Mattias Gaertner wrote 6 lines
Lazarus wants to show all available switches of the currently selected fpc. It would be nice if the compiler could output all options. Something like the -h option, but in a machine readable format. How difficult is it to implement that?

It would have to be implemented and maintained completely manually. There is no general table or so in the compiler of all supported options nor of all options and their explanations. Or alternatively, the option parsing (and associated help text display) would have to be rewritten completely.

Jonas

Reply by email