{"action":"created","issue":{"url":"https://api.github.com/repos/inspec/inspec/issues/3459","repository_url":"https://api.github.com/repos/inspec/inspec","labels_url":"https://api.github.com/repos/inspec/inspec/issues/3459/labels{/name}","comments_url":"https://api.github.com/repos/inspec/inspec/issues/3459/comments","events_url":"https://api.github.com/repos/inspec/inspec/issues/3459/events","html_url":"https://github.com/inspec/inspec/issues/3459","id":365643048,"node_id":"MDU6SXNzdWUzNjU2NDMwNDg=","number":3459,"title":"inspec exec command line ordering does not work as expected","user":{"login":"trevor-vaughan","id":4982601,"node_id":"MDQ6VXNlcjQ5ODI2MDE=","avatar_url":"https://avatars0.githubusercontent.com/u/4982601?v=4","gravatar_id":"","url":"https://api.github.com/users/trevor-vaughan","html_url":"https://github.com/trevor-vaughan","followers_url":"https://api.github.com/users/trevor-vaughan/followers","following_url":"https://api.github.com/users/trevor-vaughan/following{/other_user}","gists_url":"https://api.github.com/users/trevor-vaughan/gists{/gist_id}","starred_url":"https://api.github.com/users/trevor-vaughan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevor-vaughan/subscriptions","organizations_url":"https://api.github.com/users/trevor-vaughan/orgs","repos_url":"https://api.github.com/users/trevor-vaughan/repos","events_url":"https://api.github.com/users/trevor-vaughan/events{/privacy}","received_events_url":"https://api.github.com/users/trevor-vaughan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-01T21:06:08Z","updated_at":"2018-10-02T00:31:36Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### 🎛 Description\r\n\r\n**Choose one:** 🐛 bug report\r\n\r\nIn most command line utilities, I am used to the following syntax:\r\n\r\n`<COMMAND> <OPTIONS> <NON_OPTION_ITEMS>`\r\n\r\nWith InSpec, I just tried to switch from using `--format` to `--reporter` and found that what I expected to work, as shown above, did not.\r\n\r\nI expected that `inspec exec --reporter json /path/to/stuff` would execute but instead it gave me an error that `/path/to/stuff` is not a valid reporter type.\r\n\r\nI then tried `inspec exec --reporter json -- /path/to/stuff` since `--` is common for 'end of options' but this also did not work.\r\n\r\nI checked the docs at https://www.inspec.io/docs/reference/cli/ but the `exec` section didn't have any indication of this strange behavior in the main documentation or option docs that I could find.\r\n\r\n### 🌍 InSpec and Platform Version\r\n\r\nInSpec 2.3.5 on CentOS 7 as installed via the official YUM repos.\r\n\r\n### 💁 Possible Solutions\r\n\r\n1. Make the CLI work like most traditional utilities (preferred)\r\n2. Update the docs to note options that have to go after the path\r\n3. Make the path an option and don't allow users to set it at the command line without a flag"},"comment":{"url":"https://api.github.com/repos/inspec/inspec/issues/comments/426107702","html_url":"https://github.com/inspec/inspec/issues/3459#issuecomment-426107702","issue_url":"https://api.github.com/repos/inspec/inspec/issues/3459","id":426107702,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjEwNzcwMg==","user":{"login":"aaronlippold","id":1486440,"node_id":"MDQ6VXNlcjE0ODY0NDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1486440?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronlippold","html_url":"https://github.com/aaronlippold","followers_url":"https://api.github.com/users/aaronlippold/followers","following_url":"https://api.github.com/users/aaronlippold/following{/other_user}","gists_url":"https://api.github.com/users/aaronlippold/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronlippold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronlippold/subscriptions","organizations_url":"https://api.github.com/users/aaronlippold/orgs","repos_url":"https://api.github.com/users/aaronlippold/repos","events_url":"https://api.github.com/users/aaronlippold/events{/privacy}","received_events_url":"https://api.github.com/users/aaronlippold/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T00:31:36Z","updated_at":"2018-10-02T00:31:36Z","author_association":"MEMBER","body":"inspec exec <profile> <target> <attributes> (<json-config>)* <options>\n<reporter> is what I have found to be the most stable ordering\n\n   - json-config will take the place of many of the other\n\n--------\nAaron Lippold\n\nlippold@gmail.com\n\n260-255-4779\n\ntwitter/aim/yahoo,etc.\n'aaronlippold'\n\n\nOn Mon, Oct 1, 2018 at 8:21 PM Aaron Lippold <notifications@github.com>\nwrote:\n\n> inspec exec * is what I have found to be the most stable ordering\n>\n>    - json-config will take the place of many of the other\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/inspec/inspec/issues/3459#issuecomment-426106028>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/ABauaN1PYHQSzC4BjBYa8JCwwYQTfIz_ks5ugrF9gaJpZM4XC424>\n> .\n>\n"}}
{"actor":{"display_login":"aaronlippold"}}