thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

New command-line option to specify line number and column of files #447

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I want command-line option to specify line number and column of files to open.

For example:

    C:\Python> PyScripter.exe -l 123 -c 5 example.py

Or:

    C:\Python> PyScripter.exe ex1.py +123:5 ex2.py +456:7

I believe this is very convenient to open files in command line.

Original issue reported on code.google.com by kwa...@gmail.com on 19 Nov 2010 at 10:58

GoogleCodeExporter commented 9 years ago
Fixed in version control.
The format is:
pyscripter "filename (lll:ccc)"

i.e. the filename should be followed by a space and enclosed in parenthesis the 
line and column numbers separated by colon. The whole expression should be 
enclosed in double quotes.

The expression in double quotes should match the regular expression (.+) 
\((\d+):(\d+)\)$

Original comment by pyscripter on 9 Dec 2010 at 2:11