One idea
match takes a value and maps each possible shape to an action. In a CLI, that value is often a command, a flag, or parsed input.
Use match when the next step depends on clear cases: add, list, done, invalid command.
Why it matters
Your CLI will receive messy input. A hostel expense tool may get add, split, total, or a typo like totla.
Instead of scattering if else checks across the file, put the decision in one match. It becomes easier to read during a hackathon demo and easier to change later.