Items to be viewed are given on the command line. These will often be filenames, but in general they represent a set of strings which the utility will try to turn into 'nodes' - it will try one node type after another until it succeeds. If it cannot make any kind of node it will fail with an error message. The order of preference in which it tries to construct nodes from strings on the command line can be altered using flags if required, but by default it is:
Flags are provided to modify the order of construction if required. When interpreting the commmand line arguments, treeview keeps an ordered list of node types, which starts off as above. If a flag specifying one of the node types is encountered, the corresponding type is brought to the head of the list, and if the '-strict' flag is encountered the list is cleared. The order in which the flags and item strings are encountered on the line is significant. In this way it is possible to specify exactly what kind of node you would like to make from a given string. Modifying the node type preference list is not often necessary, but it can be useful in the case of name clashes or to view an item of one sort in its aspect as another.
TREEVIEW - Hierarchical data viewer