I’m assuming that there is a need to dynamically configure things like the port in the parent’s environment.
However, for an assembly tool, it might make sense to simply have it hard coded and save the extra complexity. My launcher script suggestion is a possible solution to this, but I would just hard code the port and ship it without a launcher myself.
The suckless projects make use of hard coded configurations in their C programs. The principle is the same.