Recent

Author Topic: Lazarus.exe -version OR -v  (Read 754 times)

ASBzone

  • Sr. Member
  • ****
  • Posts: 264
  • Automation leads to relaxation...
    • BrainWaveCC Utilities
Lazarus.exe -version OR -v
« on: March 24, 2019, 04:56:58 pm »
Isn't typing lazarus.exe -version OR lazarus.exe -v supposed to generate the version info only, then exit?

So says lazarus.exe -?

But, with version 2.0.1 r60726, this is not happening.  It just opens the application.

Same for r60613 (on another system).  Both of these are 64-bit Windows installations.

Can someone else verify that this is occurring for them or not?
-ASB: https://www.BrainWaveCC.com

Lazarus v2.0.5 r62023 / FPC v3.2.0-beta-r43192 (via FpcUpDeluxe) -- Windows 64-bit install w/32-bit cross-compile
Primary System: Windows 10 Pro x64, Version 1903 (Build 18362.476)
Other Systems: Windows 10 Pro x64, Version 1903 or greater

Bart

  • Hero Member
  • *****
  • Posts: 3546
    • Bart en Mariska's Webstek
Re: Lazarus.exe -version OR -v
« Reply #1 on: March 24, 2019, 05:39:49 pm »
Fixed in r60763.
Please test with Lazarus trunk.
I'll put in he the merge list for 2.0.2.

Thanks for reporting.

Bart

lucamar

  • Hero Member
  • *****
  • Posts: 2137
Re: Lazarus.exe -version OR -v
« Reply #2 on: March 24, 2019, 06:35:57 pm »
Seems to be a long-standing bug: 1.8.2 and 1.8.4 do the same. Haven't tested 2.0.0, though ...
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.4/2.0.6  - FPC 3.0.4 on:
(K|L)Ubuntu 12..16, Windows XP SP3, various DOSes.

ASBzone

  • Sr. Member
  • ****
  • Posts: 264
  • Automation leads to relaxation...
    • BrainWaveCC Utilities
Re: Lazarus.exe -version OR -v
« Reply #3 on: March 24, 2019, 08:52:13 pm »
Fixed in r60763.

You are very welcome.  I tested it just now, and it worked, so thank you kindly.   (v2.1.0 r60764)

Any chance that we could have an option that also outputs to console?
-ASB: https://www.BrainWaveCC.com

Lazarus v2.0.5 r62023 / FPC v3.2.0-beta-r43192 (via FpcUpDeluxe) -- Windows 64-bit install w/32-bit cross-compile
Primary System: Windows 10 Pro x64, Version 1903 (Build 18362.476)
Other Systems: Windows 10 Pro x64, Version 1903 or greater

Bart

  • Hero Member
  • *****
  • Posts: 3546
    • Bart en Mariska's Webstek
Re: Lazarus.exe -version OR -v
« Reply #4 on: March 24, 2019, 11:25:36 pm »
Any chance that we could have an option that also outputs to console?

Lazarus is build as Windows GUI program.
As such it does not have a console.
Every writeln() would trigger a runtime error (IO Error).

Bart

ASBzone

  • Sr. Member
  • ****
  • Posts: 264
  • Automation leads to relaxation...
    • BrainWaveCC Utilities
Re: Lazarus.exe -version OR -v
« Reply #5 on: March 24, 2019, 11:28:08 pm »
Lazarus is build as Windows GUI program.
As such it does not have a console.
Every writeln() would trigger a runtime error (IO Error).

Bart

Ah.  Makes sense.   Thank you, sir.  I will settle for what I have now, which works.  :)
-ASB: https://www.BrainWaveCC.com

Lazarus v2.0.5 r62023 / FPC v3.2.0-beta-r43192 (via FpcUpDeluxe) -- Windows 64-bit install w/32-bit cross-compile
Primary System: Windows 10 Pro x64, Version 1903 (Build 18362.476)
Other Systems: Windows 10 Pro x64, Version 1903 or greater