Source-Navigator supports the following command line options:
This forces batch mode to create a new project. If this is set, Source-Navigator will not launch. Instead the following command line options will be used to create a new project.
This command creates a project in the current directory using the directory path. For example, if the current directory is /home/foo and --projectname is run, the project name becomes /home/foo/foo.proj.
Sets preferences for an option used in project creation.
Lists options that can be set using --define.
(synonyms: -dbdir, -database, -db)
Defines the directory for the symbol databases. Without this, the symbol databases are put in a directory called SNDB4 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.
This option prevents the creation of cross-references. By default, Source-Navigator generates cross-reference information for the project.
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.
~bin/snavigator --batchmode
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.
~bin/snavigator --projectname foo
| ||
---|---|---|