{"action":"closed","issue":{"url":"https://api.github.com/repos/martinlindhe/wmi_exporter/issues/91","repository_url":"https://api.github.com/repos/martinlindhe/wmi_exporter","labels_url":"https://api.github.com/repos/martinlindhe/wmi_exporter/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/martinlindhe/wmi_exporter/issues/91/comments","events_url":"https://api.github.com/repos/martinlindhe/wmi_exporter/issues/91/events","html_url":"https://github.com/martinlindhe/wmi_exporter/issues/91","id":241072509,"number":91,"title":"Wrong flags in Usage helper text","user":{"login":"eduardohki","id":7414593,"avatar_url":"https://avatars0.githubusercontent.com/u/7414593?v=4","gravatar_id":"","url":"https://api.github.com/users/eduardohki","html_url":"https://github.com/eduardohki","followers_url":"https://api.github.com/users/eduardohki/followers","following_url":"https://api.github.com/users/eduardohki/following{/other_user}","gists_url":"https://api.github.com/users/eduardohki/gists{/gist_id}","starred_url":"https://api.github.com/users/eduardohki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eduardohki/subscriptions","organizations_url":"https://api.github.com/users/eduardohki/orgs","repos_url":"https://api.github.com/users/eduardohki/repos","events_url":"https://api.github.com/users/eduardohki/events{/privacy}","received_events_url":"https://api.github.com/users/eduardohki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-07-06T20:13:57Z","updated_at":"2017-07-18T11:18:37Z","closed_at":"2017-07-18T11:18:37Z","body":"I was trying to manually run `wmi_exproter.exe` with custom options, because I wanted the port to listen at 9100 (like node_exporter).\r\n\r\nHowever, the flag listed in the command-line usage wasn't working, issuing the error `flag provided but not defined: -addr`:\r\n\r\n```\r\nPS C:\\Program Files\\wmi_exporter> .\\wmi_exporter.exe -addr \":9100\"\r\nflag provided but not defined: -addr\r\nUsage of C:\\Program Files\\wmi_exporter\\wmi_exporter.exe:\r\n  -collector.iis.app-blacklist string\r\n        Regexp of apps to blacklist. App name must both match whitelist and not match blacklist to be included.\r\n  -collector.iis.app-whitelist string\r\n        Regexp of apps to whitelist. App name must both match whitelist and not match blacklist to be included. (default\r\n \".+\")\r\n  -collector.iis.site-blacklist string\r\n        Regexp of sites to blacklist. Site name must both match whitelist and not match blacklist to be included.\r\n  -collector.iis.site-whitelist string\r\n        Regexp of sites to whitelist. Site name must both match whitelist and not match blacklist to be included. (defau\r\nlt \".+\")\r\n  -collector.logical_disk.volume-blacklist string\r\n        Regexp of volumes to blacklist. Volume name must both match whitelist and not match blacklist to be included.\r\n  -collector.logical_disk.volume-whitelist string\r\n        Regexp of volumes to whitelist. Volume name must both match whitelist and not match blacklist to be included. (d\r\nefault \".+\")\r\n  -collector.net.nic-blacklist string\r\n        Regexp of NIC:s to blacklist. NIC name must both match whitelist and not match blacklist to be included.\r\n  -collector.net.nic-whitelist string\r\n        Regexp of NIC:s to whitelist. NIC name must both match whitelist and not match blacklist to be included. (defaul\r\nt \".+\")\r\n  -collectors.enabled string\r\n        Comma-separated list of collectors to use. Use '[default]' as a placeholder for all the collectors enabled by de\r\nfault (default \"cpu,cs,logical_disk,net,os,service,system\")\r\n  -collectors.print\r\n        If true, print available collectors and exit.\r\n  -log.format value\r\n        Set the log target and format. Example: \"logger:syslog?appname=bob&local=7\" or \"logger:stdout?json=true\" (defaul\r\nt \"logger:stderr\")\r\n  -log.level value\r\n        Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal] (default \"in\r\nfo\")\r\n  -telemetry.addr string\r\n        host:port for WMI exporter. (default \":9182\")\r\n  -telemetry.path string\r\n        URL path for surfacing collected metrics. (default \"/metrics\")\r\n  -version\r\n        Print version information.\r\n```\r\n\r\nSo I found out that it needed to use two hyphens (`--addr \":9100\"`) instead of one (`-addr \":9100\"`), for every option.\r\n\r\nSo I think a fix is needed in the Usage text.\r\n\r\n"}}
{"actor":{"display_login":"martinlindhe"}}