rattletrap-3.1.0: Parse and generate Rocket League replays.

Safe HaskellNone
LanguageHaskell2010

Rattletrap.Main

Synopsis

Documentation

main :: IO () Source #

Gets command-line arguments and passes them to mainWithArgs.

mainWithArgs :: [String] -> IO () Source #

Runs the main command-line interface. Can be used in one of three modes:

  1. mainWithArgs ["version"]: Prints out the version number and exits. Mostly useful for debugging.
  2. mainWithArgs ["decode"]: Parses a raw replay into JSON. By default this reads from STDIN and writes to STDOUT. To read from a file, pass a second argument like mainWithArgs ["decode", "input.replay"]. To write to a file, pass a third argument like mainWithArgs ["decode", "input.replay", "output.json"].
  3. mainWithArgs ["encode"]: Generates a raw replay from JSON. The handling of input and output is the same as decoding.