Skip to content

Commit

Permalink
Remove vestigial argument
Browse files Browse the repository at this point in the history
Signed-off-by: Geoffrey Biggs <gbiggs@killbots.net>
  • Loading branch information
gbiggs committed Mar 17, 2021
1 parent 95778e4 commit 40ee929
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ros2launch/ros2launch/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def launch_a_launch_file(
):
"""Launch a given launch file (by path) and pass it the given launch file arguments."""
for name in sorted(option_extensions.keys()):
option_extensions[name].prestart(launch_service_options, args)
option_extensions[name].prestart(args)
launch_service = launch.LaunchService(
argv=launch_file_arguments,
noninteractive=noninteractive,
Expand Down
6 changes: 3 additions & 3 deletions ros2launch/ros2launch/option/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ def add_arguments(self, parser, cli_name, *, argv=None):
"""Add arguments to the argparse parser"""
return

def prestart(self, options, args):
def prestart(self, args):
"""
Perform actions the prior to the LaunchService being started.
This method does not need to return anything.
"""
return

def prelaunch(self, launch_description, options, args):
def prelaunch(self, launch_description, args):
"""
Perform actions prior to the launch process running
Expand All @@ -64,7 +64,7 @@ def prelaunch(self, launch_description, options, args):
"""
return (launch_description,)

def postlaunch(self, launch_return_code, options, args):
def postlaunch(self, launch_return_code, args):
"""
Perform cleanup actions after the launch process finishes.
Expand Down

0 comments on commit 40ee929

Please sign in to comment.