{"comment":{"url":"https://api.github.com/repos/kinvolk/rkt/comments/14644133","html_url":"https://github.com/kinvolk/rkt/commit/829bda820ae70c4490703d8d66a088cf52642ada#commitcomment-14644133","id":14644133,"user":{"login":"krnowak","id":96081,"avatar_url":"https://avatars.githubusercontent.com/u/96081?v=3","gravatar_id":"","url":"https://api.github.com/users/krnowak","html_url":"https://github.com/krnowak","followers_url":"https://api.github.com/users/krnowak/followers","following_url":"https://api.github.com/users/krnowak/following{/other_user}","gists_url":"https://api.github.com/users/krnowak/gists{/gist_id}","starred_url":"https://api.github.com/users/krnowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krnowak/subscriptions","organizations_url":"https://api.github.com/users/krnowak/orgs","repos_url":"https://api.github.com/users/krnowak/repos","events_url":"https://api.github.com/users/krnowak/events{/privacy}","received_events_url":"https://api.github.com/users/krnowak/received_events","type":"User","site_admin":false},"position":47,"line":349,"path":"rkt/cli_apps.go","commit_id":"829bda820ae70c4490703d8d66a088cf52642ada","created_at":"2015-11-26T17:15:25Z","updated_at":"2015-11-26T17:15:25Z","body":"This is wrong I think - it should be `return (bf.flags & f) == f`.\r\n\r\nAssume we have flagMap like:\r\n```go\r\nflagMap := map[string]int{\r\n    \"a\": 1, // 01\r\n    \"b\": 2, // 10\r\n    \"c\": 3  // 11\r\n}\r\n```\r\nand we set a flag \"a\" only, then hasFlag(3) will return true."}}