View Issue Details

IDProjectCategoryView StatusLast Update
0036846FPCCompilerpublic2020-05-12 22:09
ReporterNoName Assigned ToJonas Maebe  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Product Version3.3.1 
Summary0036846: Add "--version" switch
DescriptionI cannot comment on https://bugs.freepascal.org/view.php?id=36844 but having a --version switch is like a common standard in all kinds of programs to show the version (see below)

Recommended output:
$ fpc --version
Free Pascal Compiler version 3.2.0-beta-r43619
Additional Informationgcc --version
gdb --version
python --version
firefox --version
gnome-calculator --version
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget-
Attached Files

Relationships

related to 0036844 resolvedMichael Van Canneyt no "-version" switch 

Activities

Jonas Maebe

2020-03-29 16:10

manager   ~0121752

fpc does not follow the convention of a single "-" for the short option name and "--" for the long option name. It does not support any "--" option at all, and both -v and -V are already taken for other purposes (-V only by the "fpc" binary, but that means it can't be used by the compiler either).

Florian

2020-03-29 16:12

administrator   ~0121753

FPC's command line handling might need a complete overhaul. But adding an option like --version which does not fit in the command line switch scheme of FPC is not an option in particular as we have -l (together with -i offering machine readable output). And: at least on my linux just typing fpc writes the version and shows the help screen.

Marco van de Voort

2020-03-29 17:06

manager   ~0121755

(using longer switch names will increase pain on older targets with cmdline length limits)

Jonas Maebe

2020-03-29 17:25

manager   ~0121756

Virtually all programs that support long parameter names also support shorter alternatives (at the very least for common parameters).

Issue History

Date Modified Username Field Change
2020-03-29 16:03 NoName New Issue
2020-03-29 16:10 Jonas Maebe Assigned To => Jonas Maebe
2020-03-29 16:10 Jonas Maebe Status new => resolved
2020-03-29 16:10 Jonas Maebe Resolution open => won't fix
2020-03-29 16:10 Jonas Maebe FPCTarget => -
2020-03-29 16:10 Jonas Maebe Note Added: 0121752
2020-03-29 16:12 Florian Note Added: 0121753
2020-03-29 17:06 Marco van de Voort Note Added: 0121755
2020-03-29 17:25 Jonas Maebe Note Added: 0121756
2020-03-29 17:26 Tomas Hajny Relationship added related to 0036844
2020-05-12 22:09 NoName Status resolved => closed