phillipj / gitlab-search

Command line tool to search for contents in GitLab repositories
MIT License
310 stars 37 forks source link

Personal token starting with "-" doesn't work #16

Open phillipj opened 4 years ago

phillipj commented 4 years ago

Just tried running setup with a personal access token starting with a minus (-):

$ gitlab-search setup -superSecretToken
error: missing required argument 'personal-access-token'

Doesn't seem to recognise that token argument if it starts with a minus, which obviously some GitLab tokens do.

This might be affect by my use of zsh.

phillipj commented 4 years ago

Workaround for this ATM for anyone struggling with the same is creating the .gitlabsearchrc file by hand:

$ echo '{"token":"-superSecretToken"}' > .gitlabsearchrc