smurfix/flask-script — pull request #114 by rjw57 (2014-09-08 12:09:18+00:00)
Title: work-around unexpected formatting of help text

On my machine (Python 3.3.5), running ``python -m runserver -?` gives the following output:

```console
$ python -m personalsite runserver -?
usage: __main__.py runserver [-?] [-h HOST] [-p PORT] [--threaded]
[--processes PROCESSES] [--passthrough-errors]
[-d] [-D] [-r] [-R]

Runs the Flask development server i.e. app.run()

optional arguments:
-?, --help show this help message and exit
-h HOST, --host HOST
-p PORT, --port PORT
--threaded
--processes PROCESSES
--passthrough-errors
-d, --debug enable the Werkzeug debugger (DO NOT use in production
code)
-D, --no-debug disable the Werkzeug debugger
-r, --reload monitor Python files for changes (not 100{'container':
,
'choices': None, 'metavar': None, 'dest':
'use_reloader', 'help': 'monitor Python files for
changes (not 100% safe for production use)', 'type':
None, 'required': False, 'default': None,
'option_strings': ['-r', '--reload'], 'const': True,
'nargs': 0, 'prog': '__main__.py runserver'}afe for
production use)
-R, --no-reload do not monitor Python files for changes
```

I suspect that the ``% s`` in ``100% safe`` is being interpreted as a formatting escape sequence. This PR includes a speculative work-around which doesn't fix the root problem but does stop strange output.