cmd/syncthing: Extra parameters on command line should trigger failure and usage message #3690
Labels
bug
A problem with current functionality, as opposed to missing functionality (enhancement)
frozen-due-to-age
Issues closed and untouched for a long time, together with being locked for discussion
For some unknown reason, I entered
syncthing /paths
instead ofsyncthing -paths
at the command line for a user not currently running syncthing.It seems that st ignores any arguments other than options, and started normally, creating files and certificates and launching the gui.
Options appear to be validated as expected.
syncthing -paths
andsyncthing --paths
are accepted and show the expected information.syncthing ---paths
andsyncthing -junk
respond assyncthing -help
.However, there seems to be no validation that the rest of the command line is empty apart from comments.
No great harm happened - just a few files to delete.
I consider this a minor, embarrassing bug.
Version Information
Syncthing Version: v0.14.9
OS Version: Debian stretch...
Browser Version: n/a
The text was updated successfully, but these errors were encountered: