Cannot use `textual run` to run a script with arguments

You get this if you try:

$ textual run --dev test_widget.py foo
Usage: textual run [OPTIONS] FILE or FILE:APP
Try 'textual run --help' for help.

Error: Got unexpected extra argument (foo)

Can anyone suggest any workaround?

Oh, wait, I found it - just use quotes around file and args.