Support --max option across all commands