Skip to content

Fix incorrect cli help text - #8557

Merged
AudriusButkevicius merged 1 commit into
syncthing:mainfrom
NickBusey:main
Sep 26, 2022
Merged

AudriusButkevicius merged 1 commit into
syncthing:mainfrom
NickBusey:main

Conversation

@NickBusey

Copy link
Copy Markdown
Contributor

Purpose

The current help text for the gui-address option in the cli is incorrect.

It currently displays needing a full URL.

Override GUI address to `URL` (e.g. \"http://192.0.2.42:8443\")

If you pass a full url as the gui-address option, you get a failure.

syncthing cli --gui-address http://127.0.0.1:8385 --gui-apikey wjvTg743GgzEuUGJhG6QxVMMTpyX2gKi config folders list
parse "http://http:%2F%2F127.0.0.1:8385/rest/system/config": invalid URL escape "%2F"

If you pass without the protocol (http://) it works

syncthing cli --gui-address 127.0.0.1:8385 --gui-apikey wjvTg743GgzEuUGJhG6QxVMMTpyX2gKi config folders list
default

This fixes the help text to reflect what should actually be passed.

Testing

Run a cli command with the options as described above.

@AudriusButkevicius
AudriusButkevicius merged commit f38df0d into syncthing:main Sep 26, 2022
@calmh calmh added this to the v1.22.0 milestone Sep 27, 2022
calmh added a commit to calmh/syncthing that referenced this pull request Oct 3, 2022
* upgradescloudfunc:
  wip
  wip
  wip
  wip
  wip
  wip
  wip
  wip
  wip
  wip
  wip
  gui: Filter scope ID out of IPv6 addresses in Remote GUI (fixes syncthing#8084) (syncthing#8559)
  cmd/syncthing: Fix incorrect cli help text (syncthing#8557)
  docker: Add env var to control capabilities (syncthing#8552)
  gui, man, authors: Update docs, translations, and contributors
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Oct 12, 2023
@syncthing syncthing locked and limited conversation to collaborators Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants