diff options
author | russ <russ@perspexis.com> | 2013-02-13 12:59:20 -0500 |
---|---|---|
committer | russ <russ@perspexis.com> | 2013-02-13 12:59:20 -0500 |
commit | 7f5c98a36c3a8e1b9877e1d4cfe41fd00f08833a (patch) | |
tree | 496f5951d908f6022890423a3a53404e9e739a2f | |
parent | 0219d131aa2b331f04ae34331a92c633b9b6cabf (diff) | |
download | pygments-7f5c98a36c3a8e1b9877e1d4cfe41fd00f08833a.tar.gz |
removed pointless code and trimmed the -s help docs
-rw-r--r-- | pygments/cmdline.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/pygments/cmdline.py b/pygments/cmdline.py index 854d567d..b5b6aab1 100644 --- a/pygments/cmdline.py +++ b/pygments/cmdline.py @@ -76,11 +76,10 @@ If no specific lexer can be determined "text" is returned. The -H option prints detailed help for the object <name> of type <type>, where <type> is one of "lexer", "formatter" or "filter". -The -s option processes lines one-by-one until EOF, rather than waiting -to process the entire file. This only works for processing stdin, and -is intended for streaming input, such as you get from 'tail -f'. -This is suitable for scripts to pipe lines to. -e.g.: "tail -f sql.log | pygmentize -s -l sql" +The -s option processes lines one at a time until EOF, rather than +waiting to process the entire file. This only works for stdin, and +is intended for streaming input such as you get from 'tail -f'. +Example usage: "tail -f sql.log | pygmentize -s -l sql" The -h option prints this help. The -V option prints the package version. @@ -366,10 +365,6 @@ def main(args=sys.argv): print >>sys.stderr, 'Error:', err return 1 - #read in the code block... - # - end result is that 'code' holds the entire code - code = None - if args: if len(args) > 1: print >>sys.stderr, usage |