Source-Navigator 99r1 supports the following command-line options:
--batchmode
This forces batch mode to create a new project. If this is set, the Source-Navigator application will not launch. Instead the following command line options will be used to create a new project.
--projectname
/home/foo
and
--projectname
is run, the project name becomes
/home/foo/foo.proj
.
--avail-options
--define <option>=<value>
-dbdir
,
-database
,
-db
)
Defines the directory for the symbol databases. Without this, the symbol databases are put in a directory called
.snprj
at the same level as the project file.
Specifies a text file with a list of all files or directories to add to the project.
--noxref
This option prevents the creation of cross-references. By default, Source-Navigator generates cross-reference information for the project.
--create
This option is used to start the Auto-Create dialog. It is not normally used with
--batchmode
. Source-Navigator prompts the user for information used to create a project.
The following command creates a project named
/home/smith/devo.proj
using the files listed in devo-files in batch mode. The database files are stored in
~/db_files
. Source-Navigator returns when the project has been created.
~bin/snavigator --batchmode \
--import devo-files \
--databasedir ~/db_files \
--project /home/smith/devo
The following command creates a project in batch mode using the current directory. It adds all of the files in the current directory and in all of the subdirectories. The current working directory is
/home/smith/devo/snavigator
. The generated project name is
/home/smith/devo/snavigator/snavigator.proj
.
The following command displays the Auto-Create dialog, initialized with the current directory, with
foo.proj
as the project name. To view the project, you must open Source-Navigator.