Skip to content

Commit

Permalink
fix ipython usage text
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
minrk committed Mar 25, 2013
1 parent b9f9301 commit 41eaa28
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions IPython/core/usage.py
Expand Up @@ -27,12 +27,15 @@
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
Expand Down

0 comments on commit 41eaa28

Please sign in to comment.