chickadee » srfi-193 » command-name

command-nameprocedure

Returns a simplified version of (car (command-line)), respecting the current binding of the command-line parameter.

This is typically something suitable to display as the program name. For example, /path/to/foo.scm is simplified into foo.

However, if (car (command-line)) is a zero-length string, #f is returned to signify "not a command".