docs icon indicating copy to clipboard operation
docs copied to clipboard

Document the cli subcommand

Open lejeczek opened this issue 5 years ago • 6 comments

Include required information

Hi guys,

First off goes my thanks to dev and particularly for documentation you make - not all devs get(for some inexplicable reason) how crucial man pages are to the all the rest of us(whole-world - devs =) I run my Syncthing on Centos and I'm not sure if it's just distro's package issues but in case it's not - then please do with the 'cli' subcommand what you have done with the rest of 'Syncthing': Give it a nice juicy man page!!!

Please be sure to include at least:

  • what problem your new feature would solve
  • how or why you think it is generally useful (i.e., not just for you)
  • what alternatives or workarounds you considered

lejeczek avatar Jun 13 '20 09:06 lejeczek

It has -help, so I am not sure there is any value in a man page . Plenty of command line tools only have -help.

By the way, documentation is community maintained, so "be the change you want to see"

AudriusButkevicius avatar Jun 13 '20 09:06 AudriusButkevicius

I am going to close this.

I don't think there is much content that could go in a man page, most of the cli is auto-generated reflectively anyway, so keeping a man page manually would be a never ending catch up game, and I'd rather not have a man page then have an outdated one.

If you want to see a change here, I suggest you file a PR.

AudriusButkevicius avatar Jun 13 '20 12:06 AudriusButkevicius

Yeah, right.

lejeczek avatar Jun 13 '20 12:06 lejeczek

The man page could explain the basics and how to explore the config and operations subcommands. Since stcli itself knows these structures I could imagine a --long-help which outputs all the variants in indented format. Our other man pages are also generated from something so auto generating a man page based on template and --long-help seems doable.

calmh avatar Jun 13 '20 13:06 calmh

Sure, I guess there could be explanations on where it gets credentials etc too.

AudriusButkevicius avatar Jun 13 '20 13:06 AudriusButkevicius

It looks like stcli no longer exists, and has been merged into the cli subcommand of the syncthing binary.

marbens-arch avatar Apr 25 '25 01:04 marbens-arch