NAME
tree.pl - Test Tree and Tree::Persist
SYNOPSIS
tree.pl [options]
Options:
-copy TableName
-data_structure
-help
-starting_id N
-table_name TableName
-verbose
All switches can be reduced to a single letter.
Exit value: 0.
OPTIONS
- -copy TableName
-
Copy the rows from the table specified by -table_name to the table specified by -copy.
This option causes the -data_structure option to be ignored.
When -copy is not used, the tree is displayed in 1 of 2 ways. See -data_structure for details.
- -data_structure
-
This option is only used when the -copy option is not used.
When -data_structure is used, the program displays a data structure suitable for encoding in JSON.
When not used (and -copy is not used), the program pretty-prints the menu. This is the default output.
- -help
-
Print help and exit.
- -starting_id N
-
The id of the root of the tree.
Defaults to 1.
- -table_name TableName
-
The name of the table to process.
This option is mandatory.
- -verbose
-
Print progress messages.
DESCRIPTION
tree.pl Tree and Tree::Persist.