cmd/bp: add flag parsing