{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis.rb/issues/336","labels_url":"https://api.github.com/repos/travis-ci/travis.rb/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis.rb/issues/336/comments","events_url":"https://api.github.com/repos/travis-ci/travis.rb/issues/336/events","html_url":"https://github.com/travis-ci/travis.rb/issues/336","id":116985059,"number":336,"title":"Can't use encrypt on something that starts with a dash","user":{"login":"mbleigh","id":1022,"avatar_url":"https://avatars.githubusercontent.com/u/1022?v=3","gravatar_id":"","url":"https://api.github.com/users/mbleigh","html_url":"https://github.com/mbleigh","followers_url":"https://api.github.com/users/mbleigh/followers","following_url":"https://api.github.com/users/mbleigh/following{/other_user}","gists_url":"https://api.github.com/users/mbleigh/gists{/gist_id}","starred_url":"https://api.github.com/users/mbleigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbleigh/subscriptions","organizations_url":"https://api.github.com/users/mbleigh/orgs","repos_url":"https://api.github.com/users/mbleigh/repos","events_url":"https://api.github.com/users/mbleigh/events{/privacy}","received_events_url":"https://api.github.com/users/mbleigh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-15T10:13:04Z","updated_at":"2015-12-08T21:31:54Z","closed_at":null,"body":"If I do\r\n\r\n    travis encrypt --add deploy.token '-something-that-starts-with-a-dash'\r\n\r\nI get an `invalid option` error. This happens regardless of whether I quote the value or not. I can understand this error in a non-quotes value, but Travis should be able to handle the quotes argument appropriately."},"comment":{"url":"https://api.github.com/repos/travis-ci/travis.rb/issues/comments/163023784","html_url":"https://github.com/travis-ci/travis.rb/issues/336#issuecomment-163023784","issue_url":"https://api.github.com/repos/travis-ci/travis.rb/issues/336","id":163023784,"user":{"login":"envygeeks","id":99763,"avatar_url":"https://avatars.githubusercontent.com/u/99763?v=3","gravatar_id":"","url":"https://api.github.com/users/envygeeks","html_url":"https://github.com/envygeeks","followers_url":"https://api.github.com/users/envygeeks/followers","following_url":"https://api.github.com/users/envygeeks/following{/other_user}","gists_url":"https://api.github.com/users/envygeeks/gists{/gist_id}","starred_url":"https://api.github.com/users/envygeeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envygeeks/subscriptions","organizations_url":"https://api.github.com/users/envygeeks/orgs","repos_url":"https://api.github.com/users/envygeeks/repos","events_url":"https://api.github.com/users/envygeeks/events{/privacy}","received_events_url":"https://api.github.com/users/envygeeks/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T21:31:54Z","updated_at":"2015-12-08T21:31:54Z","body":"@mbleigh that's how most CLI's work, quoting it does not escape the \"-\", it tells the CLI that it's all a single argument, try: `travis encrypt --add deploy.token -- -something-that-starts-with-a-dash`"}}