#17280: Notebook commandline argparse
-------------------------------------+-------------------------------------
       Reporter:  vbraun             |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  blocker            |    Milestone:  sage-6.4
      Component:  scripts            |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Volker Braun       |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/vbraun/notebook_commandline_argparse|  
ce9db90e99881ed20cda5a3a3d490365b912b7b2
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by cheuberg):

 * status:  needs_review => needs_work


Comment:

 I tested a few things.

 Does '''not''' work as expected:

 * Directory with slashes
 {{{
 ./sage -n default directory=/tmp/test
 Traceback (most recent call last):
 ...
   File "/local/sage/sage-6.4.rc1/local/lib/python/ast.py", line 37, in
 parse
     return compile(source, filename, mode, PyCF_ONLY_AST)
   File "<unknown>", line 1
     /tmp/test
     ^
 SyntaxError: invalid syntax
 }}}
   This worked in 6.3:
 {{{
 /local/sage/sage-6.3/sage -n directory=/tmp/test
 }}}


 Work as expected:

 {{{
 ./sage -n
 ./sage -n default
 ./sage -n -- directory=test
 ./sage -n default directory=test.sagenb
 ./sage -n sagenb "directory='/tmp/test'"
 ./sage -n -- "directory='/tmp/test'"
 ./sage -n default port=1234
 ./sage -n -- port=1234
 }}}

 Replying to [comment:21 kcrisman]:
 > I think the point was that one needed `--option=foo` if one didn't say
 which type of notebook, right?

 I do not see what you mean here; I could not get any of `--directory=test`
 or `--option=directory=test` to work, but I did not really expect it
 previously; but as I said, I do not see what you mean with `--option=foo`.

--
Ticket URL: <http://trac.sagemath.org/ticket/17280#comment:23>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to