FBReader icon indicating copy to clipboard operation
FBReader copied to clipboard

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

Open dredmorbius opened this issue 11 years ago • 2 comments

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.

dredmorbius avatar Aug 23 '14 12:08 dredmorbius

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?

berezovskyi avatar Sep 21 '14 07:09 berezovskyi

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

##FBReader --version =open FBreader ^C

~/Desktop $ FBReader --help

=open FBreader

pleabargain avatar Nov 07 '14 12:11 pleabargain