{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/1348","labels_url":"https://api.github.com/repos/openshift/origin/issues/1348/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/1348/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/1348/events","html_url":"https://github.com/openshift/origin/issues/1348","id":62555361,"number":1348,"title":"'osc login' displays no help options","user":{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars.githubusercontent.com/u/1163175?v=3","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"fabianofranz","id":158611,"avatar_url":"https://avatars.githubusercontent.com/u/158611?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianofranz","html_url":"https://github.com/fabianofranz","followers_url":"https://api.github.com/users/fabianofranz/followers","following_url":"https://api.github.com/users/fabianofranz/following{/other_user}","gists_url":"https://api.github.com/users/fabianofranz/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianofranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianofranz/subscriptions","organizations_url":"https://api.github.com/users/fabianofranz/orgs","repos_url":"https://api.github.com/users/fabianofranz/repos","events_url":"https://api.github.com/users/fabianofranz/events{/privacy}","received_events_url":"https://api.github.com/users/fabianofranz/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-03-18T01:15:24Z","updated_at":"2015-03-18T14:31:50Z","closed_at":null,"body":"```\r\n$ osc help login\r\nLogs in to the OpenShift server and save the session\r\ninformation to a config file that will be used by every subsequent command.\r\n\r\nFirst-time users of the OpenShift client must run this command to configure the server,\r\nestablish a session against it and save it to a configuration file, usually in the\r\nuser's home directory.\r\n\r\nThe information required to login, like username and password or a session token, and \r\nthe server details, can be provided through flags. If not provided, the command will\r\nprompt for user input if needed.\r\n\r\nUse \"osc --help\" for a list of all commands available in osc.\r\nUse \"osc options\" for a list of global command-line options (applies to all commands).\r\n```\r\n\r\ncan't see help options, not very useful."},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/82996478","html_url":"https://github.com/openshift/origin/issues/1348#issuecomment-82996478","issue_url":"https://api.github.com/repos/openshift/origin/issues/1348","id":82996478,"user":{"login":"fabianofranz","id":158611,"avatar_url":"https://avatars.githubusercontent.com/u/158611?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianofranz","html_url":"https://github.com/fabianofranz","followers_url":"https://api.github.com/users/fabianofranz/followers","following_url":"https://api.github.com/users/fabianofranz/following{/other_user}","gists_url":"https://api.github.com/users/fabianofranz/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianofranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianofranz/subscriptions","organizations_url":"https://api.github.com/users/fabianofranz/orgs","repos_url":"https://api.github.com/users/fabianofranz/repos","events_url":"https://api.github.com/users/fabianofranz/events{/privacy}","received_events_url":"https://api.github.com/users/fabianofranz/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T14:31:50Z","updated_at":"2015-03-18T14:31:50Z","body":"I have a TODO for this one, the major reason is that all flags in `login` are also persistent flags, and we are hiding the persistent ones by default. We need a way in our templates or Cobra to be able to display some pre-selected flags even if they are persistent. So 2 things:\r\n\r\n - Expose `server`, `context`, `username`, `password`, `insecure-skip-tls-verify` and other persistent flags that have a meaning locally in `login`. \r\n - I believe `username` and `password` should be *de-registered* from persistent flags, and be local to `login`. In OpenShift we only want them being used in the `login` command, nothing else. "}}