Skip to content

Commit ad24fae

Browse files
remove some unused cli arguments
for the Galaxy converter
1 parent 747c31a commit ad24fae

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

ctdconverter/galaxy/converter.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,6 @@ def add_specific_args(parser):
7676
"brief example on the layout of this file.", default=None, required=False)
7777
parser.add_argument("-a", "--add-to-command-line", dest="add_to_command_line",
7878
help="Adds content to the command line", default="", required=False)
79-
parser.add_argument("-d", "--datatypes-destination", dest="data_types_destination",
80-
help="Specify the location of a datatypes_conf.xml to modify and add the registered "
81-
"data types. If the provided destination does not exist, a new file will be created.",
82-
default=None, required=False)
83-
parser.add_argument("-c", "--default-category", dest="default_category", default="DEFAULT", required=False,
84-
help="Default category to use for tools lacking a category when generating tool_conf.xml")
85-
parser.add_argument("-t", "--tool-conf-destination", dest="tool_conf_destination", default=None, required=False,
86-
help="Specify the location of an existing tool_conf.xml that will be modified to include "
87-
"the converted tools. If the provided destination does not exist, a new file will"
88-
"be created.")
89-
parser.add_argument("-g", "--galaxy-tool-path", dest="galaxy_tool_path", default=None, required=False,
90-
help="The path that will be prepended to the file names when generating tool_conf.xml")
9179
parser.add_argument("-r", "--required-tools", dest="required_tools_file", default=None, required=False,
9280
help="Each line of the file will be interpreted as a tool name that needs translation. "
9381
"Run with '-h' or '--help' to see a brief example on the format of this file.")
@@ -404,13 +392,6 @@ def validate_and_prepare_args(args, model):
404392
for variable_name in input_variables_to_check:
405393
utils.validate_argument_is_valid_path(args, variable_name)
406394

407-
# check that the provided output files, if provided, contain a valid file path (i.e., not a folder)
408-
output_variables_to_check = ["data_types_destination", "tool_conf_destination"]
409-
for variable_name in output_variables_to_check:
410-
file_name = getattr(args, variable_name)
411-
if file_name is not None and os.path.isdir(file_name):
412-
raise ApplicationException("The provided output file name (%s) points to a directory." % file_name)
413-
414395
if not args.macros_files:
415396
# list is empty, provide the default value
416397
logging.warning("Using default macros from galaxy/macros.xml")

0 commit comments

Comments
 (0)