|
1 | 1 | #!/usr/bin/env python |
2 | 2 | """Tool to extract a tool list from galaxy.""" |
3 | 3 |
|
4 | | -from argparse import ArgumentDefaultsHelpFormatter |
5 | 4 | from argparse import ArgumentParser |
6 | 5 | from distutils.version import StrictVersion |
7 | 6 |
|
|
10 | 9 | from bioblend.galaxy.toolshed import ToolShedClient |
11 | 10 |
|
12 | 11 | from . import get_galaxy_connection |
13 | | -from .common_parser import get_common_args |
| 12 | +from .common_parser import ArgumentDefaultsHideUnderscoresHelpFormatter, get_common_args |
14 | 13 | from .shed_tools_methods import format_tool_shed_url |
15 | 14 |
|
16 | 15 |
|
@@ -216,29 +215,29 @@ def _parser(): |
216 | 215 | """Creates the parser object.""" |
217 | 216 | parent = get_common_args(login_required=True) |
218 | 217 | parser = ArgumentParser(parents=[parent], |
219 | | - formatter_class=ArgumentDefaultsHelpFormatter) |
| 218 | + formatter_class=ArgumentDefaultsHideUnderscoresHelpFormatter) |
220 | 219 | parser.add_argument("-o", "--output-file", |
221 | 220 | required=True, |
222 | 221 | dest="output", |
223 | 222 | help="tool_list.yml output file") |
224 | | - parser.add_argument("--include_tool_panel_id", |
| 223 | + parser.add_argument("--include-tool-panel-id", "--include_tool_panel_id", |
225 | 224 | action="store_true", |
226 | 225 | help="Include tool_panel_id in tool_list.yml ? " |
227 | 226 | "Use this only if the tool panel id already exists. See " |
228 | 227 | "https://github.com/galaxyproject/ansible-galaxy-tools/blob/master/files/tool_list.yaml.sample") |
229 | | - parser.add_argument("--skip_tool_panel_name", |
| 228 | + parser.add_argument("--skip-tool-panel-name", "--skip_tool_panel_name", |
230 | 229 | action="store_true", |
231 | 230 | help="Do not include tool_panel_name in tool_list.yml ?") |
232 | | - parser.add_argument("--skip_changeset_revision", |
| 231 | + parser.add_argument("--skip-changeset-revision", "--skip_changeset_revision", |
233 | 232 | action="store_true", |
234 | 233 | help="Do not include the changeset revision when generating the tool list." |
235 | 234 | "Use this if you would like to use the list to update all the tools in" |
236 | 235 | "your galaxy instance using shed-install." |
237 | 236 | ) |
238 | | - parser.add_argument("--get_data_managers", |
| 237 | + parser.add_argument("--get-data-managers", "--get_data_managers", |
239 | 238 | action="store_true", |
240 | 239 | help="Include the data managers in the tool list. Requires admin login details") |
241 | | - parser.add_argument("--get_all_tools", |
| 240 | + parser.add_argument("--get-all-tools", "--get_all_tools", |
242 | 241 | action="store_true", |
243 | 242 | help="Get all tools and revisions, not just those which are present on the web ui." |
244 | 243 | "Requires login details.") |
|
0 commit comments