From 41eaa286d8e33324812227fd7a72437fa36d074b 2013-03-25 00:24:35 From: MinRK Date: 2013-03-25 00:24:35 Subject: [PATCH] fix ipython usage text It does not describe current behavior, which is now like regular python. The `[-c cmd | -m mod | file]` is taken directly from Python's own help output. --- diff --git a/IPython/core/usage.py b/IPython/core/usage.py index 493d7fb..750c811 100644 --- a/IPython/core/usage.py +++ b/IPython/core/usage.py @@ -27,12 +27,15 @@ Tools for Interactive Computing in Python Usage - ipython [subcommand] [options] [files] - - If invoked with no options, it executes all the files listed in sequence - and exits, use -i to enter interactive mode after running the files. Files - ending in .py will be treated as normal Python, but files ending in .ipy - can contain special IPython syntax (magic commands, shell expansions, etc.) + ipython [subcommand] [options] [-c cmd | -m mod | file] [arg] ... + + If invoked with no options, it executes the file and exits, passing the + remaining arguments to the script, just as if you had specified the same + command with python. If you specify the option `-i` before the filename, it + will enter an interactive IPython session after running the script, rather + than exiting. Files ending in .py will be treated as normal Python, but + files ending in .ipy can contain special IPython syntax (magic commands, + shell expansions, etc.) Almost all configuration in IPython is available via the command-line. Do `ipython --help-all` to see all available options. For persistent