Improve --qt-arg docs

This commit is contained in:
Florian Bruhin 2016-11-16 22:32:44 +01:00
parent 8d7fcf41da
commit d1154759d1
2 changed files with 6 additions and 4 deletions

View File

@ -102,8 +102,8 @@ show it.
*--no-err-windows*::
Don't show any error windows (used for tests/smoke.py).
*--qt-arg* 'QT_ARG'::
Pass an argument with a value to Qt.
*--qt-arg* 'NAME' 'VALUE'::
Pass an argument with a value to Qt. For example, you can do `--qt-arg geometry 650x555+200+300` to set the window geometry.
*--qt-flag* 'QT_FLAG'::
Pass an argument to Qt as flag.

View File

@ -105,8 +105,10 @@ def get_argparser():
"temporary basedir.")
debug.add_argument('--no-err-windows', action='store_true', help="Don't "
"show any error windows (used for tests/smoke.py).")
debug.add_argument('--qt-arg', help="Pass an argument with a value to Qt.",
nargs=2)
debug.add_argument('--qt-arg', help="Pass an argument with a value to Qt. "
"For example, you can do "
"`--qt-arg geometry 650x555+200+300` to set the window "
"geometry.", nargs=2, metavar=('NAME', 'VALUE'))
debug.add_argument('--qt-flag', help="Pass an argument to Qt as flag.",
nargs=1)
parser.add_argument('command', nargs='*', help="Commands to execute on "