mirror of
https://github.com/Hamlib/Hamlib
synced 2026-08-13 17:32:05 -04:00
Fix handling of command line parameters for pytests
This commit is contained in:
parent
d507e815a3
commit
e1761827d9
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ def pytest_addoption(parser):
|
|||
metavar='ID', help='select amplifier model number')
|
||||
parser.addoption('--amp-file', default=None,
|
||||
metavar='DEVICE', help='set device of the amplifier to operate on')
|
||||
if sys.argv[1].endswith("rig.py"):
|
||||
elif sys.argv[1].endswith("rig.py"):
|
||||
parser.addoption('--model', type=int, default=1,
|
||||
metavar='ID', help='select radio model number')
|
||||
parser.addoption('--rig-file', default=None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue