Use this command to identify a project associated with
the current working directory or a user-specified path.
About this task
ccm project [-f|-format format] [-nf|-noformat] ([-ch|-column_header] |
[-nch|-nocolumn_header]) [-sep|-separator separator]
([-sby|-sortby sortspec] | [-ns|-nosort|-no_sort])
[-gby|-groupby groupformat]
ccm project [-f|-format format] [-nf|-noformat] ([-ch|-column_header] |
[-nch|-nocolumn_header]) [-sep|-separator separator]
([-sby|-sortby sortspec] | [-ns|-nosort|-no_sort])
[-gby|-groupby groupformat] file_spec
- -ch|-column_header
- Specifies to use a column header in the output format. See -ch|-column_header for details.
- file_spec
- Specifies an object whose parent directory is used to determine
an associated project. If omitted, the current working directory is
the default. See File specification for detailed information.
- -f|-format format
- Specifies the command output format. See -f|-format for details.
- -gby|-groupby groupformat
- Specifies how to group the command output. See -gby|-groupby for details.
- -nch|-nocolumn_header
- Specifies not to use a column header in the output format. See -nch|-nocolumn_header for details.
- -nf|-noformat
- Specifies not to use column alignment. See -nf|-noformat for details.
- -ns|-no_sort
- Specifies not to sort the output. See -ns|-nosort for details.
- -sep|-separator separator
- Specifies a different separator character. See -sep|-separator for details.
- -sby|-sortby sortspec
- Specifies how to sort the command output. See -sby|-sortby for details.
- -u|-unnumbered
- Suppresses automatic numbering of the output (the output is not
numbered). See -u|-unnumbered for details.
The
default format is %displayname. This subcommand does
not update the query selection set.
Example
Determine the project associated
with the
$HOME/ccm_wa/database/example-1/example/doc/readme.txt work
area path.
ccm project $HOME/ccm_wa/database/example-1/example/doc/readme.txt
example-1