Re: slrn version on one line for brevity
Sven Guckes <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
* Jörg Sommer <[email protected]> [2008-02-23 15:03]: > Sven Guckes <[email protected]> wrote: > > but - is there a way to put the version info on one line? > > Why do you need this? What's the rational behind this question? brevity. :) besides, a long output just scares most people off. many GNU programs also display the GNU license - but you can get the program name and version info from the first line by piping the output to "head -1". example: guckes@kudu:~> emacs --version GNU Emacs 22.1.1 Copyright (C) 2007 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. guckes@kudu:~> emacs --version | head -1 GNU Emacs 22.1.1 hmm... havent called emacs in a loooooooooooooooooooooong time... > > Software + Version: slrn 0.9.999 > > Linked to library: S-Lang 2.1.3 > > Source Released on: 2008-02-22 > > Operating System: Linux ... 2.6.18-4-xen-amd64 > > Compile Date+Time: Fri Feb 22 13:23:42 CET 2008 > > > > overkill? maybe. ;-) > > To you, maybe ;-) no, not really. actually, i am fine with both. as they both have its purpose. so - how about making it *two* startup options? $ slrn --version $ slrn --version-long that way the short call gives a short output, preferably just one line. and the long option name gives you all the rest of the stuff. :-) Sven ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/