handle get-info command with most flag