geometer / FBReader

Official FBReader C++ project repository
http://www.fbreader.org/
540 stars 170 forks source link

fbreader on linux should return version with '--version' shell argument #258

Open dredmorbius opened 10 years ago

dredmorbius commented 10 years ago

A well-established standard for Linux commands is to return the version of the program when run with the '--version' commandline option.

e.g.,

$ bash --version
GNU bash, version 4.3.0(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

or

$ chromium --version
Chromium 33.0.1750.152 Debian jessie/sid

Please add this to fbreader.

berezovskyi commented 10 years ago

I think the necessary change should be made in /zlibrary/core/src/unix/library/ZLibrary.cpp in the method bool ZLibrary::init(int &argc, char **&argv). Maybe you want to add the relevant code, @dredmorbius?

pleabargain commented 10 years ago

Yes, this would be very helpful esp. when posting bugs...

FBReader --version

=open FBreader ^C

~/Desktop $ FBReader --help

=open FBreader