ProjectExplorer command line parsing: Handle directories.

Prevent the editor from complaining about not being able to
open directories. Instead, check whether the directory name
matches a session or the the directory contains a project
file.

The idea is that one can type "qtcreator ." which results in
'Do what I mean'.

Change-Id: I45c5836567f8d1ff1024aca12db3603d6539d376
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Friedemann Kleint
2012-09-06 16:58:58 +02:00
parent 0d2b1aedeb
commit 811f3627d9
2 changed files with 70 additions and 14 deletions

View File

@@ -55,6 +55,12 @@
\endlist
To open a project that is located in a particular folder, you can pass on the folder
name as a command line argument. \QC looks for a session that matches the folder name and
loads it. Or it looks for a project file in the folder and opens it. For example:
\c {qtcreator .}
The following table summarizes the available options:
\table