Switches for gnatls (GNAT User’s Guide for Native Platforms)

#### 5.2.2 Switches for `gnatls` ¶

You can specify the following switches to `gnatls`:

`--version`

  Display copyright and version, then exit, disregarding all other options.

`--help`

  If `--version` was not specified, display usage, then exit, disregarding all other options.

`-a`

  Consider all units, including those of the predefined Ada library. Especially useful with `-d`.

`-d`

  List sources that specified units depend on.

`-h`

  Output the list of options.

`-o`

  Only output information about object files.

`-s`

  Only output information about source files.

`-u`

  Only output information about compilation units.

`-files=`file'`

  Take as arguments the files listed in text file `file`, which may contain empty lines that are ignored. Each nonempty line should contain the name of an existing file. Several such switches may be specified on the same command.

`-aO`dir'`, `-aI`dir'`, `-I`dir'`, `-I-`, `-nostdinc`

  Source path manipulation. It has the same meaning as the equivalent `gnatmake` switches (Switches for gnatmake).

`-aP`dir'`

  Add `dir` at the beginning of the project search dir.

`--RTS=`rts-path'`

  Specifies the default location of the runtime library. It has the same meaning as the equivalent `gnatmake` switch (Switches for gnatmake).

`-v`

  Verbose mode. Output the complete source, object and project paths. Don’t use the default column layout but instead use long format giving as much as information possible on each requested units, including special characteristics such as:

  - ‘Preelaborable’: The unit is preelaborable in the Ada sense.
  - ‘No_Elab_Code’: No elaboration code has been produced by the compiler for this unit.
  - ‘Pure’: The unit is pure in the Ada sense.
  - ‘Elaborate_Body’: The unit contains a pragma Elaborate_Body.
  - ‘Remote_Types’: The unit contains a pragma Remote_Types.
  - ‘Shared_Passive’: The unit contains a pragma Shared_Passive.
  - ‘Predefined’: This unit is part of the predefined environment and cannot be modified by the user.
  - ‘Remote_Call_Interface’: The unit contains a pragma Remote_Call_Interface.