# Command line -version switch

**URL:** <https://help.ganttproject.biz/t/command-line-version-switch/2627>\
**Category:** GanttProject Desktop Support\
**Created:** [February 23, 2021, 2:47pm UTC](https://help.ganttproject.biz/t/command-line-version-switch/2627 "2021-02-23T14:47:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewrule](https://help.ganttproject.biz/letter_avatar_proxy/v4/letter/a/e47774/32.png) [@andrewrule](https://help.ganttproject.biz/u/andrewrule)\
**Post date:** [February 23, 2021, 2:47pm UTC](https://help.ganttproject.biz/t/command-line-version-switch/2627/1 "2021-02-23T14:47:00Z")

</div>

Please could the 3.x version of GanttProject have the -version command line switch again, like the 2.x version did?

prompt\>ganttproject.exe -version  
3.0.3002  
prompt\>

Interestingly I notice that the version switch seems to only work with the ganttproject.bat rather than also with the ganttproject.exe for version 2.8.11, I don’t know why. For 3.0.3002 it seems that the ganttproject.bat just hangs whether or not I give it the -version switch.

For both 2.8 and 3.0 ganttproject.exe -version seems to do nothing, and returns you to a prompt without running the program.

I am using zulu java 11 on Windows (8.1 and 10).
