syncthing/cmd
André Colomb 41bfb7a330
Normalize CLI options to always use two dashes. (#8037)
Consistently use double dashes and fix typos -conf, -data-dir and
-verify.

Applies also to tests running the syncthing binary for consistency.

* Fix mismatched option name --conf in cli subcommand.

According to the source code comments, the cli option flags should
mirror those from the serve subcommand where applicable.  That one is
actually called --config though.

* cli: Fix help text option placeholders.

The urfave/cli package uses the Value field of StringFlag to provide a
default value, not to name the placeholder.  That is instead done with
backticks around some part of the Usage field.

* cli: Add missing --data flag in subcommand help text.

The urfave/cli based option parsing uses a fake flags collection to
generate help texts matching the used global options.  But the --data
option was omitted from it, although it is definitely required when
using --config as well.  Note that it cannot just be ignored, as some
debug stuff actually uses the DB:

syncthing cli --data=/bar --config=/foo debug index dump
2021-11-04 08:42:55 +01:00
..
stcompdirs all: Remove crypto/md5 (#7493) 2021-03-17 22:22:49 +01:00
stcrashreceiver all: Send deadlocks as failures, crash only as a last resort (#7785) 2021-07-27 21:27:52 +02:00
stdisco all: Implement suture v4-api (#6947) 2020-11-17 13:19:04 +01:00
stdiscosrv all: Regenerate proto (#7696) 2021-05-19 13:30:20 +02:00
stevents cmd/stevents: Add command line argument for event type filtering. (#7226) 2020-12-22 22:10:26 +01:00
stfileinfo all: Implement variable sized blocks (fixes #4807) 2018-04-16 19:08:50 +01:00
stfinddevice lib: Faster termination on exit (ref #6319) (#6329) 2020-02-13 14:43:00 +01:00
stfindignored all: Unused args, retvals, assignments (#7926) 2021-09-08 00:11:16 +02:00
stgenfiles all: Revert the underscore sillyness 2019-02-02 12:16:27 +01:00
strelaypoolsrv all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
strelaysrv all: Refactor relay invitations (#7646) 2021-05-10 22:25:43 +02:00
stsigtool cmd/stsigtool: Silence spurious Go 1.10 test/vet complaint 2017-12-10 19:42:17 +01:00
stupgrades cmd/stupgrades: Generate appropriate upgrade data (fixes #5924) (#5960) 2019-08-16 10:04:10 +02:00
stvanity all: Simplify some method calls (#7499) 2021-03-17 23:12:26 +01:00
stwatchfile all: Remove crypto/md5 (#7493) 2021-03-17 22:22:49 +01:00
syncthing Normalize CLI options to always use two dashes. (#8037) 2021-11-04 08:42:55 +01:00
uraggregate cmd/uraggregate: Optimise queries (#7679) 2021-05-16 12:34:46 +01:00
ursrv all: Simplify some method calls (#7499) 2021-03-17 23:12:26 +01:00
.gitignore Remove reprecated st* utils 2014-07-01 12:20:25 +02:00