Skip to content

Update CLI with actual real options - #19

Merged
Dinnerbone merged 9 commits into
mainfrom
cli
Apr 22, 2026
Merged

Update CLI with actual real options#19
Dinnerbone merged 9 commits into
mainfrom
cli

Conversation

@Dinnerbone

Copy link
Copy Markdown
Owner
Usage: rascal_cli [OPTIONS] [SCRIPT]...

Options:
  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

Inputs:
  -c, --class <CLASS>
          A name of a class to be added to the compiled program.

          This should be the canonical name of a class (e.g. `Foo` or `foo.bar.Baz`) which should be found in the current directory (e.g. at `Foo.as` or `foo/bar/Baz.as`).

          All classes will be loaded after any scripts (see `SCRIPT`). If no scripts are specified, one (and only one) class is expected to have an entry point in the form of a `static function main()` method.

      --classpath <CLASSPATH>
          Adds a directory to be searched for classes.

          If no classpaths are specified, the current working directory will be used instead.

  [SCRIPT]...
          A loose script (not class file) to add to the compiled program.

          Multiple scripts may be added to one program. Scripts will be executed in order that they are added, before any classes are loaded.

          It is valid to not specify any scripts - if so, the entry point of the program will be the first class (see `--class`) that contains a `static function main()` method.

Generated SWF Options:
  -o, --output <OUTPUT>
          Output file path. This will be overwritten if it already exists.

          If not specified:
          - If there are any scripts (see `SCRIPT`) specified, the first one will be used to determine the output path.
          - `output.swf` will be used if all else fails.

  -v, --swf-version <SWF_VERSION>
          SWF version to use

          [default: 15]

      --frame-rate <FRAME_RATE>
          Frame rate of the output SWF

          [default: 24]

@Dinnerbone
Dinnerbone merged commit bf3e39d into main Apr 22, 2026
4 checks passed
@Dinnerbone
Dinnerbone deleted the cli branch April 22, 2026 20:04
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