11#!/usr/bin/env python
22"""Tool to extract a tool list from galaxy."""
33
4- from argparse import (
5- ArgumentDefaultsHelpFormatter ,
6- ArgumentParser ,
7- )
4+ from argparse import ArgumentParser
85from distutils .version import StrictVersion
96
107import yaml
118from bioblend .galaxy .tools import ToolClient
129from bioblend .galaxy .toolshed import ToolShedClient
1310
1411from . import get_galaxy_connection
15- from .common_parser import get_common_args
12+ from .common_parser import (
13+ ArgumentDefaultsHideUnderscoresHelpFormatter ,
14+ get_common_args ,
15+ )
1616from .shed_tools_methods import format_tool_shed_url
1717
1818
@@ -245,7 +245,7 @@ def _parser():
245245 """Creates the parser object."""
246246 parent = get_common_args (login_required = True )
247247 parser = ArgumentParser (
248- parents = [parent ], formatter_class = ArgumentDefaultsHelpFormatter
248+ parents = [parent ], formatter_class = ArgumentDefaultsHideUnderscoresHelpFormatter
249249 )
250250 parser .add_argument (
251251 "-o" ,
@@ -255,30 +255,35 @@ def _parser():
255255 help = "tool_list.yml output file" ,
256256 )
257257 parser .add_argument (
258+ "--include-tool-panel-id" ,
258259 "--include_tool_panel_id" ,
259260 action = "store_true" ,
260261 help = "Include tool_panel_id in tool_list.yml ? "
261262 "Use this only if the tool panel id already exists. See "
262263 "https://github.com/galaxyproject/ansible-galaxy-tools/blob/master/files/tool_list.yaml.sample" ,
263264 )
264265 parser .add_argument (
266+ "--skip-tool-panel-name" ,
265267 "--skip_tool_panel_name" ,
266268 action = "store_true" ,
267269 help = "Do not include tool_panel_name in tool_list.yml ?" ,
268270 )
269271 parser .add_argument (
272+ "--skip-changeset-revision" ,
270273 "--skip_changeset_revision" ,
271274 action = "store_true" ,
272275 help = "Do not include the changeset revision when generating the tool list."
273276 "Use this if you would like to use the list to update all the tools in"
274277 "your galaxy instance using shed-install." ,
275278 )
276279 parser .add_argument (
280+ "--get-data-managers" ,
277281 "--get_data_managers" ,
278282 action = "store_true" ,
279283 help = "Include the data managers in the tool list. Requires admin login details" ,
280284 )
281285 parser .add_argument (
286+ "--get-all-tools" ,
282287 "--get_all_tools" ,
283288 action = "store_true" ,
284289 help = "Get all tools and revisions, not just those which are present on the web ui."
0 commit comments