Refactored command logic using enum.
Adds --list-folder-ids option to extract a list of folder IDs from the given EAD file.