mirror of
https://github.com/syncthing/syncthing.git
synced 2026-02-07 04:32:28 -05:00
Currently the `Run()` function of the CLI always uses `os.Args` directly. This change adds an additional `RunWithArgs()` function that allows passing arguments as `[]string` instead. This is useful when linking against Syncthing as a library to be able to also expose the CLI.