From c25c3678670efb80f88cdc12a22a2b4b7ce71d71 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Wed, 23 Feb 2011 11:45:33 +0100 Subject: [PATCH] Doc: opening files to a specified line from command line Reviewed-by: Leandro Melo Reviewed-by: dt --- doc/qtcreator.qdoc | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/doc/qtcreator.qdoc b/doc/qtcreator.qdoc index 9eca55cd5b3..52f7151ff08 100644 --- a/doc/qtcreator.qdoc +++ b/doc/qtcreator.qdoc @@ -10315,15 +10315,28 @@ \title Using Command Line Options You can start Qt Creator and specify some options from the command line. + For example, you can open a file to any line. To specify command line options, enter the following command in the Qt Creator installation or build directory: - \c {qtcreator [option] [filename]} + \c {qtcreator [option] [filename[:line_number]]} + + \note You can use either a colon (:) or a plus sign (+) as a separator + between the filename and line number. You can also use a space between the + separator and the line number. For example: - \c {C:\qtcreator-2.1\bin>qtcreator -help} + \list + + \o \c {C:\qtcreator-2.1\bin>qtcreator -help} + + \o \c {C:\qtcreator-2.1\bin>qtcreator C:\TextFinder\textfinder.cpp:100} + + \o \c {C:\qtcreator-2.1\bin>qtcreator C:\TextFinder\textfinder.cpp +100} + + \endlist The following table summarizes the available options: