added the '-tree' parameter to open a tree from the command line