Skip to content

Commit 6e83437

Browse files
author
none
committed
Device: make add_arguments optional
1 parent b99a031 commit 6e83437

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

device.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, args, name, required_options=None, **options):
4242
self._asserted_ipl = 0
4343

4444
@classmethod
45-
def add_arguments(cls, parser):
45+
def add_global_arguments(cls, parser):
4646
"""Common arguments applying to all devices"""
4747
parser.add_argument('--debug-device',
4848
action='append',
@@ -52,6 +52,10 @@ def add_arguments(cls, parser):
5252
' to trace device framework.')
5353
Register.add_arguments(parser)
5454

55+
@classmethod
56+
def add_arguments(cls, parser):
57+
pass
58+
5559
########################################
5660
# Devices
5761

py68k.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
target = importlib.import_module('targets.' + args.target)
6060
Emulator.add_arguments(parser)
6161
Trace.add_arguments(parser)
62-
Device.add_arguments(parser)
62+
Device.add_global_arguments(parser)
6363
RootDevice.add_arguments(parser)
6464
target.add_arguments(parser)
6565

0 commit comments

Comments
 (0)