Skip to content

-P CLI argument does not work as expected #371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MichaelDesantis opened this issue Mar 28, 2019 · 1 comment
Closed

-P CLI argument does not work as expected #371

MichaelDesantis opened this issue Mar 28, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@MichaelDesantis
Copy link
Contributor

MichaelDesantis commented Mar 28, 2019

  • code-server version: Development
  • OS Version: MAC OS X 10.13.6

Description

According to code-server --help, this is the expected format for passing a password argument to the CLI:

-P, --password <value> Specify a password for authentication.

Currently, the --password argument works. But -P does not.

Steps to Reproduce

  1. Attempt to run code-server with a -P CLI argument
@MichaelDesantis MichaelDesantis added the bug Something isn't working label Mar 28, 2019
@MichaelDesantis
Copy link
Contributor Author

MichaelDesantis commented Apr 2, 2019

UPDATE: This appears to be a quirk of the commander package we're using for the CLI. All arguments that are set using a single dash and require CLI input cannot handle = symbols. E.G

code-server -P abcdefg  (This works)
code-server -P=abcdefg (This throws errors)

Which is a bit odd because

code-server --password abcdegf (works)
code-server --password=abcdegf (also works)

This quirk is consistent and repeatable with the -h (for host) and -p (for port) flags as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant