Feature request: add a configuration option '--enable-mainnet' which defaults to false but is set to true by the gitian builds. When true, behavior is unaffected. When false (the default for someone cloning the repo and building with no configuration options), the resulting binary will require a new 'enablemainnet' option to be set in order to launch the daemon or Qt GUI with main net chain params.
This prevents developers or downstream system integrators from accidentally corrupting main net wallets or block chain data when developing new features. It has happened to me multiple times in the past that I've corrupted wallets while implementing and debugging new wallet features. Of course these were either testnet wallets, or I was careful to backup the wallet first. But we should strive to create a development environment without single-point failure potential to prevent fat-finger mistakes if nothing else.