Skip to content

Commit

Permalink
Extract export path from output CLI option (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerjbeckwith authored Dec 1, 2024
1 parent c72a1f4 commit 55f83a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ some useful [SYSTEM OPTIONS] are:

static func set_output(project: Project, next_arg: String) -> void:
if not next_arg.is_empty():
project.file_name = next_arg.get_basename()
project.file_name = next_arg.get_file().get_basename()
var directory_path = next_arg.get_base_dir()
if directory_path != ".":
project.export_directory_path = directory_path
var extension := next_arg.get_extension()
project.file_format = Export.get_file_format_from_extension(extension)

Expand Down

0 comments on commit 55f83a3

Please sign in to comment.