{"action":"opened","issue":{"url":"https://api.github.com/repos/garbin/elasticsearch-reindex/issues/21","repository_url":"https://api.github.com/repos/garbin/elasticsearch-reindex","labels_url":"https://api.github.com/repos/garbin/elasticsearch-reindex/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/garbin/elasticsearch-reindex/issues/21/comments","events_url":"https://api.github.com/repos/garbin/elasticsearch-reindex/issues/21/events","html_url":"https://github.com/garbin/elasticsearch-reindex/issues/21","id":160864902,"number":21,"title":"Using \"-z\" as last option in command line prevents reindex script from executing ","user":{"login":"patlevin","id":13781615,"avatar_url":"https://avatars.githubusercontent.com/u/13781615?v=3","gravatar_id":"","url":"https://api.github.com/users/patlevin","html_url":"https://github.com/patlevin","followers_url":"https://api.github.com/users/patlevin/followers","following_url":"https://api.github.com/users/patlevin/following{/other_user}","gists_url":"https://api.github.com/users/patlevin/gists{/gist_id}","starred_url":"https://api.github.com/users/patlevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patlevin/subscriptions","organizations_url":"https://api.github.com/users/patlevin/orgs","repos_url":"https://api.github.com/users/patlevin/repos","events_url":"https://api.github.com/users/patlevin/events{/privacy}","received_events_url":"https://api.github.com/users/patlevin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-17T11:08:35Z","updated_at":"2016-06-17T11:08:35Z","closed_at":null,"body":"Hi,\r\n\r\nThe command line tool fails to execute the provided reindex script, if the last option is \"-z\", e.g.\r\n\r\n``elasticsearch-reindex -f 'https://user:password@server.tld/index/type' \\ \r\n  -t 'https://user:password@server.tld/index/type' -c 2 -b 25 -q 50 -v 2.1-z my_reindex.js``\r\nwont execute `my_reindex.js` whereas\r\n``elasticsearch-reindex -f 'https://user:password@server.tld/index/type' \\ \r\n  -t 'https://user:password@server.tld/index/type' -z -c 2 -b 25 -q 50 -v 2.1 my_reindex.js``\r\nwill.\r\n\r\nI suspect this is due to the way command line options are evaluated. This is not a big issue, but should be fixed or documented.\r\n\r\nCheers and thank for a great tool,\r\nPatrick"}}
{"actor":{"display_login":"patlevin"}}