[enh] handle the -i command line flag