I wrote a simple add-on for my own needs to flush rewrite rules from the command line. It struck me though that this might be a good command to include in commands/internals/, and I could picture including methods to change permalink structures and to dump rules (for piping into a text file, for example). Is this something worth pursuing?