{"comment":{"url":"https://api.github.com/repos/nfc-tools/libnfc/comments/28594153","html_url":"https://github.com/nfc-tools/libnfc/commit/7b1ff70a521ec3db2302efd22db84b3cfb678b0c#commitcomment-28594153","id":28594153,"user":{"login":"smortex","id":148721,"avatar_url":"https://avatars1.githubusercontent.com/u/148721?v=4","gravatar_id":"","url":"https://api.github.com/users/smortex","html_url":"https://github.com/smortex","followers_url":"https://api.github.com/users/smortex/followers","following_url":"https://api.github.com/users/smortex/following{/other_user}","gists_url":"https://api.github.com/users/smortex/gists{/gist_id}","starred_url":"https://api.github.com/users/smortex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smortex/subscriptions","organizations_url":"https://api.github.com/users/smortex/orgs","repos_url":"https://api.github.com/users/smortex/repos","events_url":"https://api.github.com/users/smortex/events{/privacy}","received_events_url":"https://api.github.com/users/smortex/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"7b1ff70a521ec3db2302efd22db84b3cfb678b0c","created_at":"2018-04-16T06:48:30Z","updated_at":"2018-04-16T06:48:30Z","author_association":"OWNER","body":"@quantum-x agree! `getopt(3)` and `getopt_long(3)` where designed for this.  Using these functions we could be able to detect no arguments, `-h` and invalid arguments and act accordingly in a more readable fashion.\r\n\r\nWould someone mind proposing a pull-request for improving the command-line processing (patches for unit tests are accepted as well of course but requires waaaaaays more work 😄)?"}}
{"actor":{"display_login":"smortex"}}