|
14 | 14 |
|
15 | 15 | import os
|
16 | 16 | import sys
|
| 17 | +from email.policy import default |
17 | 18 |
|
18 | 19 | from ament_index_python.packages import PackageNotFoundError
|
| 20 | + |
19 | 21 | try:
|
20 | 22 | from argcomplete.completers import FilesCompleter
|
21 | 23 | except ImportError:
|
|
27 | 29 | # argcomplete < 1.9.0
|
28 | 30 | SuppressCompleter = object
|
29 | 31 | from ros2cli.command import CommandExtension
|
30 |
| -from ros2launch.api import get_share_file_path_from_package |
31 |
| -from ros2launch.api import is_launch_file |
32 |
| -from ros2launch.api import launch_a_launch_file |
33 |
| -from ros2launch.api import LaunchFileNameCompleter |
34 |
| -from ros2launch.api import MultipleLaunchFilesError |
35 |
| -from ros2launch.api import print_a_launch_file |
36 |
| -from ros2launch.api import print_arguments_of_launch_file |
37 |
| -from ros2launch.option import get_option_extensions |
38 | 32 | from ros2pkg.api import package_name_completer
|
39 | 33 |
|
| 34 | +from ros2launch.api import (LaunchFileNameCompleter, MultipleLaunchFilesError, |
| 35 | + get_share_file_path_from_package, is_launch_file, |
| 36 | + launch_a_launch_file, print_a_launch_file, |
| 37 | + print_arguments_of_launch_file) |
| 38 | +from ros2launch.option import get_option_extensions |
| 39 | + |
40 | 40 |
|
41 | 41 | class SuppressCompleterWorkaround(SuppressCompleter):
|
42 | 42 | """Workaround https://github.com/kislyuk/argcomplete/pull/289 ."""
|
@@ -79,6 +79,8 @@ def add_arguments(self, parser, cli_name):
|
79 | 79 | parser.add_argument(
|
80 | 80 | '-d', '--debug', default=False, action='store_true',
|
81 | 81 | help='Put the launch system in debug mode, provides more verbose output.')
|
| 82 | + parser.add_argument('-f', '--log-file-name', default=None, |
| 83 | + help='Name of the logging file') |
82 | 84 | command_group = parser.add_mutually_exclusive_group()
|
83 | 85 | command_group.add_argument(
|
84 | 86 | '-p', '--print', '--print-description', default=False, action='store_true',
|
|
0 commit comments