#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|  
1baf6fe4bd539afe53254ecc0deb125d1c99c578
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vbraun):

 Thanks, fixed. I also added the examples:
 {{{
 $ ./sage -n -h
 usage: sage-notebook [-h] [--log LOG] [--notebook [NOTEBOOK]]

 The Sage notebook launcher is used to start the notebook, and allows
 you to choose between different implementations. Any further command
 line options are passed to the respective notebook.

 optional arguments:
   -h, --help            show this help message and exit. Can be combined
 with
                         "--notebook=[...]" to see notebook-specific
 options
   --log LOG             one of [DEBUG, INFO, ERROR, WARNING, CRITICAL]
   --notebook [NOTEBOOK], -n [NOTEBOOK], -notebook [NOTEBOOK]
                         The notebook to run [one of: default, ipython,
                         sagenb]. Default is sagenb

 EXAMPLES:

 * Run default notebook on port 1234. Note that the first argument
   after "-n" will be interpreted as notebook name unless you stop
   processing with "--":

       sage -n default port=1234
       sage -n -- port=1234      # equivalent
       sage -n port=1234         # ERROR: invalid notebook name

 * Run IPython notebook in custom directory:

       sage --notebook=ipython --notebook-dir=/home/foo/bar
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17280#comment:25>
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