mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-08 23:08:27 +00:00
373859be83
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.