According to https://reference.wolfram.com/language/ref/program/wolframscript.html i can pass arguments to a file containing wolframscript. But i cannot find a way to actually use passed arguments.
wolframscript -file file|url [-cloud [cloudbase] | -local [kernelpath]] [arg1 …]
Is mentioned in the Doccumentation but how do I pass named arguments? I only know how to retrieve said arguments using $ScriptCommandLine[[2;;]] but that seems very unsafe.
There is also mentioned that this file would work
#!/usr/bin/env wolframscript -function -signature City City GeoDistance[#1, #2]&
yielding this output
$ ./file.wls "New York" London Quantity[3453.7070027090986, Miles]
my current file is
#!/usr/bin/env wolframscript (* ::Package:: *) Print[$ScriptCommandLine[]] Print[#1]
But i do not know how to add this signature to my file (without nano and similair programs)