FBReader
FBReader copied to clipboard
fbreader on linux should return version with '--version' shell argument
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.
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?
Yes, this would be very helpful esp. when posting bugs...
##FBReader --version =open FBreader ^C
~/Desktop $ FBReader --help
=open FBreader