On Fri, Jul 31, 2020 at 07:44:46PM +0200, Ralf Hemmecke wrote:
> Based on a recent suggestion on fricas-devel, this patch allows to use
> double dashes for long options (option names with more than one letter).
> Furthermore, it introduces the options --help and --version.
> The --version option is programmed in such a way that neither FRICASsys
> nor sman are started.
>
> Would be good if "fricas --version" would not only print "FriCAS 1.3.5",
> but also "based on SBCL 1.5.8" without calling FRICASsys or sman.
>
> Any suggestions?
> Would I have to fetch that information at install time by running
>
> FRICASsys --eval ')lisp (lisp-implementation-type)' --eval ')lisp
> (lisp-implementation-version)' --eval ")quit"
>
> and put it as variables into the fricas script?
>
>
> Current code is at the top commit of my long-options branch.
>
> https://github.com/hemmecke/fricas/commits/long-options
I feel that this is overreaction. GNU folks have reason to use
two dashes, AFAICS we do not. IMO, reasonable change would
be to replace current "catch all" item by help, that is
unrecognized option (including '--help') would print help.
Concerning '--version', it is _preferable_ to implement it
by calling 'FRICASsys' with appropriate option. ATM passing
options to 'FRICASsys' is problematic, but probably '--version'
could be done similarly to '-eval'.
--
Waldek Hebisch
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/20200731210918.GA38505%40math.uni.wroc.pl.