# HG changeset patch
# User Jeroen Demeyer <jdemeyer@cage.ugent.be>
# Date 1346267198 -7200
# Node ID bd7436d1d0753624ba449cd8c880bc008249ee84
# Parent 883e332b333a02a3a1bbffb831d005fd680addb4
Test and document sage --info [packages]
diff --git a/doc/en/reference/options.rst b/doc/en/reference/options.rst
a
|
b
|
|
97 | 97 | |
98 | 98 | - ``-f [options] [packages]`` -- shortcut for ``-i -f``: force build of |
99 | 99 | the given Sage packages. |
| 100 | - ``--info [packages]`` -- display the ``SPKG.txt`` file of the given |
| 101 | Sage packages. |
100 | 102 | - ``--standard`` -- list all standard packages that can be installed |
101 | 103 | - ``--optional`` -- list all optional packages that can be installed |
102 | 104 | - ``--experimental`` -- list all experimental packages that can be installed |
diff --git a/sage/tests/cmdline.py b/sage/tests/cmdline.py
a
|
b
|
|
19 | 19 | -h |
20 | 20 | --help |
21 | 21 | --hg |
| 22 | --info |
22 | 23 | --ipython |
23 | 24 | --kash |
24 | 25 | --lisp |
… |
… |
|
197 | 198 | sage: ret |
198 | 199 | 0 |
199 | 200 | |
| 201 | Test ``sage --info [packages]``:: |
| 202 | |
| 203 | sage: (out, err, ret) = test_executable(["sage", "--info", "sqlalchemy"]) |
| 204 | sage: print out |
| 205 | Found package sqlalchemy in spkg/standard/sqlalchemy-...spkg |
| 206 | = SQLAlchemy = |
| 207 | ... |
| 208 | SQLAlchemy is the Python SQL toolkit... |
| 209 | sage: err |
| 210 | '' |
| 211 | sage: ret |
| 212 | 0 |
| 213 | |
200 | 214 | Test ``sage-run`` on a Python file, both with an absolute and with a relative path:: |
201 | 215 | |
202 | 216 | sage: import tempfile |