TIL that #gnuradio has a parameter block that allows you to set the value of a variable from the command line, complete with default value and validation.