Handle 'weight' and 'flag' for fuzzy commands.