Recaf-Launcher icon indicating copy to clipboard operation
Recaf-Launcher copied to clipboard

Allow passing arguments into Recaf

Open Col-E opened this issue 1 year ago • 1 comments

Currently the Recaf process is started with no arguments, but we'll want to allow specifying content like:

  • Files to open as workspaces
  • Scripts to run

Also, we should support VM arguments in addition to just Recaf arguments.

Usage:

  • For the GUI
    • A single jar path as an argument should pass that path as an input/workspace to Recaf when launched
    • A single java source file path as an argument should pass that path as a script to Recaf when launched
  • For the CLI
    • The run and auto commands should have new --input and --script arguments for passing along to Recaf when launched

See: LaunchCommand

Col-E avatar Jul 13 '24 13:07 Col-E

Idea for UI:

  • New grouped section
    • VM Arguments: Empty by default, later will want to point to user-documentation page on launch arguments for JVM
    • Recaf Arguments: Empty by default, later will want to point to user-documentation page on Recaf's arguments

Idea for CLI:

  • --vmargs "string of args"
  • --reargs "string of args"

Col-E avatar Nov 04 '24 08:11 Col-E