Skip to content

Replaced JBang --option value with --option=value - #34

Closed
wfouche wants to merge 1 commit into
jython:mainfrom
wfouche:dev/jbang
Closed

wfouche wants to merge 1 commit into
jython:mainfrom
wfouche:dev/jbang

Conversation

@wfouche

@wfouche wfouche commented Jul 11, 2026 •

Copy link
Copy Markdown
Member

JBang versions after 0.138.0 do not support the previously "not officially supported but working anyway" way of specifying runtime options that JythonCli.java uses for readability purposes.

No longer can we specify options using the following syntax:

  • --runtime-option -Dpython.console.encoding=UTF-8

The --<option>=<value> format must be used. The format changes to:

  • --runtime-option=-Dpython.console.encoding=UTF-8

which can be shortened to :

  • -R=-Dpython.console.encoding=UTF-8

The same update has been applied to options --deps and --main.

@wfouche wfouche changed the title Replaced JBang --runtime-option with -R= Replaced JBang --option value with --option=value Jul 11, 2026
@wfouche

wfouche commented Jul 11, 2026 •

Copy link
Copy Markdown
Member Author

@jeff5 , jython-cli does not currently work with the latest release of JBang (0.139.3). This fix resolves the issue.

@wfouche

wfouche commented Jul 13, 2026

Copy link
Copy Markdown
Member Author

@jeff5 or @Stewori , jython-cli is broken without this PR if the latest version of JBang is used to run Jython. This PR is a simple change, it just defines the command-line parameters in a universally supported manner.

@wfouche

wfouche commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

JBang 0.141.0 has just been released, and resolved this issue that this PR solves. PR no longer required.

@wfouche wfouche closed this Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant