mirror of
https://github.com/syncthing/syncthing.git
synced 2026-05-12 00:54:12 -04: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.