##// END OF EJS Templates
Updated manpage and docs to clarify negated options usage. Thanks to Stefan...
fperez -
Show More
@@ -6,7 +6,7 b''
6 # the file COPYING, distributed as part of this software.
6 # the file COPYING, distributed as part of this software.
7 #*****************************************************************************
7 #*****************************************************************************
8
8
9 # $Id: usage.py 578 2005-05-13 21:16:51Z fperez $
9 # $Id: usage.py 926 2005-12-01 18:14:21Z fperez $
10
10
11 from IPython import Release
11 from IPython import Release
12 __author__ = '%s <%s>' % Release.authors['Fernando']
12 __author__ = '%s <%s>' % Release.authors['Fernando']
@@ -128,8 +128,8 b' REGULAR OPTIONS'
128 See the provided examples for assistance. Options given on the comman-
128 See the provided examples for assistance. Options given on the comman-
129 dline override the values set in the ipythonrc file.
129 dline override the values set in the ipythonrc file.
130
130
131 All options with a no| prepended can be specified in ’no’ form (-noop-
131 All options with a [no] prepended can be specified in negated form
132 tion instead of -option) to turn the feature off.
132 (using -nooption instead of -option) to turn the feature off.
133
133
134 -h, --help
134 -h, --help
135 Show summary of options.
135 Show summary of options.
@@ -144,25 +144,25 b' REGULAR OPTIONS'
144 to correctly execute (without blocking) any matplotlib-based
144 to correctly execute (without blocking) any matplotlib-based
145 script which calls show() at the end.
145 script which calls show() at the end.
146
146
147 -no|autocall
147 -[no]autocall
148 Make IPython automatically call any callable object even if you
148 Make IPython automatically call any callable object even if you
149 didn’t type explicit parentheses. For example, ’str 43’ becomes
149 didn’t type explicit parentheses. For example, ’str 43’ becomes
150 ’str(43)’ automatically.
150 ’str(43)’ automatically.
151
151
152 -no|autoindent
152 -[no]autoindent
153 Turn automatic indentation on/off.
153 Turn automatic indentation on/off.
154
154
155 -no|automagic
155 -[no]automagic
156 Make magic commands automatic (without needing their first char-
156 Make magic commands automatic (without needing their first char-
157 acter to be @). Type @magic at the IPython prompt for more
157 acter to be @). Type @magic at the IPython prompt for more
158 information.
158 information.
159
159
160 -no|autoparens
160 -[no]autoparens
161 Make IPython automatically call any callable object even if you
161 Make IPython automatically call any callable object even if you
162 didn’t type explicit parentheses. For example, ’str 43’ becomes
162 didn’t type explicit parentheses. For example, ’str 43’ becomes
163 ’str(43)’ automatically.
163 ’str(43)’ automatically.
164
164
165 -no|banner
165 -[no]banner
166 Print the intial information banner (default on).
166 Print the intial information banner (default on).
167
167
168 -c <command>
168 -c <command>
@@ -186,7 +186,7 b' REGULAR OPTIONS'
186 Color scheme for prompts and exception reporting. Currently
186 Color scheme for prompts and exception reporting. Currently
187 implemented: NoColor, Linux, and LightBG.
187 implemented: NoColor, Linux, and LightBG.
188
188
189 -no|color_info
189 -[no]color_info
190 IPython can display information about objects via a set of func-
190 IPython can display information about objects via a set of func-
191 tions, and optionally can use colors for this, syntax highlight-
191 tions, and optionally can use colors for this, syntax highlight-
192 ing source code and various other elements. However, because
192 ing source code and various other elements. However, because
@@ -201,18 +201,18 b' REGULAR OPTIONS'
201 The magic function @color_info allows you to toggle this inter-
201 The magic function @color_info allows you to toggle this inter-
202 actively for testing.
202 actively for testing.
203
203
204 -no|confirm_exit
204 -[no]confirm_exit
205 Set to confirm when you try to exit IPython with an EOF (Con-
205 Set to confirm when you try to exit IPython with an EOF (Con-
206 trol-D in Unix, Control-Z/Enter in Windows). Note that using the
206 trol-D in Unix, Control-Z/Enter in Windows). Note that using the
207 magic functions @Exit or @Quit you can force a direct exit,
207 magic functions @Exit or @Quit you can force a direct exit,
208 bypassing any confirmation.
208 bypassing any confirmation.
209
209
210 -no|debug
210 -[no]debug
211 Show information about the loading process. Very useful to pin
211 Show information about the loading process. Very useful to pin
212 down problems with your configuration files or to get details
212 down problems with your configuration files or to get details
213 about session restores.
213 about session restores.
214
214
215 -no|deep_reload
215 -[no]deep_reload
216 IPython can use the deep_reload module which reloads changes in
216 IPython can use the deep_reload module which reloads changes in
217 modules recursively (it replaces the reload() function, so you
217 modules recursively (it replaces the reload() function, so you
218 don’t need to change anything to use it). deep_reload() forces a
218 don’t need to change anything to use it). deep_reload() forces a
@@ -265,18 +265,18 b' REGULAR OPTIONS'
265 retrieving a failed because of inherent limitations of Python’s
265 retrieving a failed because of inherent limitations of Python’s
266 Pickle module, so this may have to wait.
266 Pickle module, so this may have to wait.
267
267
268 -no|messages
268 -[no]messages
269 Print messages which IPython collects about its startup process
269 Print messages which IPython collects about its startup process
270 (default on).
270 (default on).
271
271
272 -no|pdb
272 -[no]pdb
273 Automatically call the pdb debugger after every uncaught excep-
273 Automatically call the pdb debugger after every uncaught excep-
274 tion. If you are used to debugging using pdb, this puts you
274 tion. If you are used to debugging using pdb, this puts you
275 automatically inside of it after any call (either in IPython or
275 automatically inside of it after any call (either in IPython or
276 in code called by it) which triggers an exception which goes
276 in code called by it) which triggers an exception which goes
277 uncaught.
277 uncaught.
278
278
279 -no|pprint
279 -[no]pprint
280 IPython can optionally use the pprint (pretty printer) module
280 IPython can optionally use the pprint (pretty printer) module
281 for displaying results. pprint tends to give a nicer display of
281 for displaying results. pprint tends to give a nicer display of
282 nested data structures. If you like it, you can turn it on per-
282 nested data structures. If you like it, you can turn it on per-
@@ -332,7 +332,7 b' REGULAR OPTIONS'
332 IPython starts with a bare bones configuration (no modules
332 IPython starts with a bare bones configuration (no modules
333 loaded at all).
333 loaded at all).
334
334
335 -no|readline
335 -[no]readline
336 Use the readline library, which is needed to support name com-
336 Use the readline library, which is needed to support name com-
337 pletion and command history, among other things. It is enabled
337 pletion and command history, among other things. It is enabled
338 by default, but may cause problems for users of X/Emacs in
338 by default, but may cause problems for users of X/Emacs in
@@ -109,29 +109,29 b' See the provided examples for assistance. Options given on the'
109 commandline override the values set in the ipythonrc file.
109 commandline override the values set in the ipythonrc file.
110 .br
110 .br
111 .sp 1
111 .sp 1
112 All options with a no| prepended can be specified in 'no' form
112 All options with a [no] prepended can be specified in negated form
113 (\-nooption instead of \-option) to turn the feature off.
113 (\-nooption instead of \-option) to turn the feature off.
114 .TP
114 .TP
115 .B \-h, \-\-help
115 .B \-h, \-\-help
116 Show summary of options.
116 Show summary of options.
117 .TP
117 .TP
118 .B \-no|autocall
118 .B \-[no]autocall
119 Make IPython automatically call any callable object even if you didn't type
119 Make IPython automatically call any callable object even if you didn't type
120 explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
120 explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
121 .TP
121 .TP
122 .B \-no|autoindent
122 .B \-[no]autoindent
123 Turn automatic indentation on/off.
123 Turn automatic indentation on/off.
124 .TP
124 .TP
125 .B \-no|automagic
125 .B \-[no]automagic
126 Make magic commands automatic (without needing their first character
126 Make magic commands automatic (without needing their first character
127 to be @). Type @magic at the IPython prompt for more information.
127 to be @). Type @magic at the IPython prompt for more information.
128 .TP
128 .TP
129 .B \-no|autoparens
129 .B \-[no]autoparens
130 Make IPython automatically call any callable object even if you didn't
130 Make IPython automatically call any callable object even if you didn't
131 type explicit parentheses. For example, 'str 43' becomes 'str(43)'
131 type explicit parentheses. For example, 'str 43' becomes 'str(43)'
132 automatically.
132 automatically.
133 .TP
133 .TP
134 .B \-no|banner
134 .B \-[no]banner
135 Print the intial information banner (default on).
135 Print the intial information banner (default on).
136 .TP
136 .TP
137 .B \-c <command>
137 .B \-c <command>
@@ -154,7 +154,7 b' Gives IPython a similar feel to the classic Python prompt.'
154 Color scheme for prompts and exception reporting. Currently
154 Color scheme for prompts and exception reporting. Currently
155 implemented: NoColor, Linux, and LightBG.
155 implemented: NoColor, Linux, and LightBG.
156 .TP
156 .TP
157 .B \-no|color_info
157 .B \-[no]color_info
158 IPython can display information about objects via a set of functions,
158 IPython can display information about objects via a set of functions,
159 and optionally can use colors for this, syntax highlighting source
159 and optionally can use colors for this, syntax highlighting source
160 code and various other elements. However, because this information is
160 code and various other elements. However, because this information is
@@ -169,18 +169,18 b' Test it and turn it on permanently if it works with your system. The'
169 magic function @color_info allows you to toggle this interactively for
169 magic function @color_info allows you to toggle this interactively for
170 testing.
170 testing.
171 .TP
171 .TP
172 .B \-no|confirm_exit
172 .B \-[no]confirm_exit
173 Set to confirm when you try to exit IPython with an EOF (Control-D in
173 Set to confirm when you try to exit IPython with an EOF (Control-D in
174 Unix, Control-Z/Enter in Windows). Note that using the magic functions
174 Unix, Control-Z/Enter in Windows). Note that using the magic functions
175 @Exit or @Quit you can force a direct exit, bypassing any
175 @Exit or @Quit you can force a direct exit, bypassing any
176 confirmation.
176 confirmation.
177 .TP
177 .TP
178 .B \-no|debug
178 .B \-[no]debug
179 Show information about the loading process. Very useful to pin down
179 Show information about the loading process. Very useful to pin down
180 problems with your configuration files or to get details about session
180 problems with your configuration files or to get details about session
181 restores.
181 restores.
182 .TP
182 .TP
183 .B \-no|deep_reload
183 .B \-[no]deep_reload
184 IPython can use the deep_reload module which reloads changes in
184 IPython can use the deep_reload module which reloads changes in
185 modules recursively (it replaces the reload() function, so you don't
185 modules recursively (it replaces the reload() function, so you don't
186 need to change anything to use it). deep_reload() forces a full reload
186 need to change anything to use it). deep_reload() forces a full reload
@@ -237,17 +237,17 b' to implement full session saving by writing and retrieving a'
237 failed because of inherent limitations of Python's Pickle module, so
237 failed because of inherent limitations of Python's Pickle module, so
238 this may have to wait.
238 this may have to wait.
239 .TP
239 .TP
240 .B \-no|messages
240 .B \-[no]messages
241 Print messages which IPython collects about its startup process
241 Print messages which IPython collects about its startup process
242 (default on).
242 (default on).
243 .TP
243 .TP
244 .B \-no|pdb
244 .B \-[no]pdb
245 Automatically call the pdb debugger after every uncaught exception. If
245 Automatically call the pdb debugger after every uncaught exception. If
246 you are used to debugging using pdb, this puts you automatically
246 you are used to debugging using pdb, this puts you automatically
247 inside of it after any call (either in IPython or in code called by
247 inside of it after any call (either in IPython or in code called by
248 it) which triggers an exception which goes uncaught.
248 it) which triggers an exception which goes uncaught.
249 .TP
249 .TP
250 .B \-no|pprint
250 .B \-[no]pprint
251 IPython can optionally use the pprint (pretty printer) module for
251 IPython can optionally use the pprint (pretty printer) module for
252 displaying results. pprint tends to give a nicer display of nested
252 displaying results. pprint tends to give a nicer display of nested
253 data structures. If you like it, you can turn it on permanently in
253 data structures. If you like it, you can turn it on permanently in
@@ -306,7 +306,7 b' loads ipythonrc (from current directory) or IPYTHONDIR/ipythonrc. If'
306 the loading of your config file fails, IPython starts with a bare
306 the loading of your config file fails, IPython starts with a bare
307 bones configuration (no modules loaded at all).
307 bones configuration (no modules loaded at all).
308 .TP
308 .TP
309 .B \-no|readline
309 .B \-[no]readline
310 Use the readline library, which is needed to support name completion
310 Use the readline library, which is needed to support name completion
311 and command history, among other things. It is enabled by default, but
311 and command history, among other things. It is enabled by default, but
312 may cause problems for users of X/Emacs in Python comint or shell
312 may cause problems for users of X/Emacs in Python comint or shell
@@ -2614,9 +2614,9 b' Most options can also be set from your ipythonrc configuration file.'
2614
2614
2615 All options with a
2615 All options with a
2616 \family typewriter
2616 \family typewriter
2617 no|
2617 [no]
2618 \family default
2618 \family default
2619 prepended can be specified in 'no' form (
2619 prepended can be specified in negated form (
2620 \family typewriter
2620 \family typewriter
2621 -nooption
2621 -nooption
2622 \family default
2622 \family default
@@ -2689,7 +2689,7 b' show()'
2689
2689
2690 \family typewriter
2690 \family typewriter
2691 \series bold
2691 \series bold
2692 -no|automagic
2692 -[no]automagic
2693 \series default
2693 \series default
2694 :
2694 :
2695 \family default
2695 \family default
@@ -2710,7 +2710,7 b' show()'
2710
2710
2711 \family typewriter
2711 \family typewriter
2712 \series bold
2712 \series bold
2713 -no|banner
2713 -[no]banner
2714 \series default
2714 \series default
2715 :
2715 :
2716 \family default
2716 \family default
@@ -2782,7 +2782,7 b' show()'
2782
2782
2783 \family typewriter
2783 \family typewriter
2784 \series bold
2784 \series bold
2785 -no|color_info:
2785 -[no]color_info:
2786 \family default
2786 \family default
2787 \series default
2787 \series default
2788 IPython can display information about objects via a set of functions, and
2788 IPython can display information about objects via a set of functions, and
@@ -2810,7 +2810,7 b' show()'
2810
2810
2811 \family typewriter
2811 \family typewriter
2812 \series bold
2812 \series bold
2813 -no|debug
2813 -[no]debug
2814 \family default
2814 \family default
2815 \series default
2815 \series default
2816 : Show information about the loading process.
2816 : Show information about the loading process.
@@ -2822,7 +2822,7 b' show()'
2822
2822
2823 \family typewriter
2823 \family typewriter
2824 \series bold
2824 \series bold
2825 -no|deep_reload
2825 -[no]deep_reload
2826 \series default
2826 \series default
2827 :
2827 :
2828 \family default
2828 \family default
@@ -3006,7 +3006,7 b' _dh'
3006
3006
3007 \family typewriter
3007 \family typewriter
3008 \series bold
3008 \series bold
3009 -no|messages
3009 -[no]messages
3010 \series default
3010 \series default
3011 :
3011 :
3012 \family default
3012 \family default
@@ -3018,7 +3018,7 b' _dh'
3018
3018
3019 \family typewriter
3019 \family typewriter
3020 \series bold
3020 \series bold
3021 -no|pdb
3021 -[no]pdb
3022 \family default
3022 \family default
3023 \series default
3023 \series default
3024 : Automatically call the pdb debugger after every uncaught exception.
3024 : Automatically call the pdb debugger after every uncaught exception.
@@ -3031,7 +3031,7 b' _dh'
3031
3031
3032 \family typewriter
3032 \family typewriter
3033 \series bold
3033 \series bold
3034 -no|pprint
3034 -[no]pprint
3035 \series default
3035 \series default
3036 :
3036 :
3037 \family default
3037 \family default
@@ -3251,7 +3251,7 b' Out['
3251
3251
3252 \family typewriter
3252 \family typewriter
3253 \series bold
3253 \series bold
3254 -no|readline
3254 -[no]readline
3255 \family default
3255 \family default
3256 \series default
3256 \series default
3257 : use the readline library, which is needed to support name completion and
3257 : use the readline library, which is needed to support name completion and
@@ -96,6 +96,9 b' def file_doesnt_endwith(test,endings):'
96
96
97 # I can't find how to make distutils create a nested dir. structure, so
97 # I can't find how to make distutils create a nested dir. structure, so
98 # in the meantime do it manually. Butt ugly.
98 # in the meantime do it manually. Butt ugly.
99 # Note that http://www.redbrick.dcu.ie/~noel/distutils.html, ex. 2/3, contain
100 # information on how to do this more cleanly once python 2.4 can be assumed.
101 # Thanks to Noel for the tip.
99 docdirbase = 'share/doc/ipython-%s' % version
102 docdirbase = 'share/doc/ipython-%s' % version
100 manpagebase = 'share/man/man1'
103 manpagebase = 'share/man/man1'
101
104
General Comments 0
You need to be logged in to leave comments. Login now