#21: command line option parsing
---------------------------+------------------------------------------------
Reporter: was | Owner: mabshoff
Type: enhancement | Status: needs_review
Priority: critical | Milestone: sage-4.3.4
Component: interfaces | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Comment(by jhpalmieri):
I've marked this as "needs review", but it might need work. In the
previously cited thread from sage-devel, there was the following
suggestion:
{{{
Another possibility might be to first check for "--gp", "--gap", etc.,
and do those before doing the general option parsing. I.e., just do
what you already planned, but with one optimization to deal with this
use case.
}}}
This is to speed up access to these programs: do a check like this in a
shell script, and then pass the rest of the arguments to Python's optparse
using the script included in this patch, or one like it. Then you avoid
the slight delay involved in starting up Python if you want to run "gp".
It would be nice to have a shell script which had a list of strings "gp",
"gap", etc., checked to see if the first(?) argument was "--STR" for STR
in this list, and if so, run the appropriate program from SAGE_LOCAL/lib,
passing the rest of the line as arguments. Having one list containing all
of these strings would make it easy to customize.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/21#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.