Skip to content

Expose script name in scriptlets #196

Closed

Description

@holgerbrandl

Currently there is no way to access the script-name within a scriptlet. A common use-case would be CLI-usage printing.

The shell launcher should capture the script name and expose it as an environment variable.

Usage example (as suggested in #195):

println("Usage: ${System.getenv("KSCRIPT_FILE")} [-ae] [--foo] file+")

Activity

  1. holgerbrandl commented on Dec 7, 2018

    @holgerbrandl
    CollaboratorAuthor

    Fixed by PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions