Skip to content

"openshift ex login" fails with "unknown flag: --certificate-authority" #1249

Closed

Description

@brenton

We need this for beta2 and @sdodson noticed it's failing. I just built the lasted origin and I see the same problem.

# openshift ex login --certificate-authority=/var/lib/openshift/openshift.local.certificates/ca/root.crt --server=https://localhost:8443 --namespace=demo --name=demo
unknown flag: --certificate-authority

Activity

  1. added this to the 0.4.0 (beta2) milestone on Mar 6, 2015
  2. added
    kind/bug
    on Mar 6, 2015
  3. deads2k commented on Mar 9, 2015

    @deads2k
    Contributor

    It's a bizarre and misleading error message that I'll look into, but for now eliminating the name flag. name doesn't exist and it's causing instigating the failure resulting in the bad message.

  4. brenton commented on Mar 9, 2015

    @brenton
    ContributorAuthor
  5. reopened this on Mar 9, 2015
  6. brenton commented on Mar 9, 2015

    @brenton
    ContributorAuthor

    Sorry, didn't mean to hit "close". :)

  7. deads2k commented on Mar 9, 2015

    @deads2k
    Contributor

    It's caused because of this if block: https://github.com/openshift/origin/blob/master/Godeps/_workspace/src/github.com/spf13/cobra/command.go#L462

    @fabianofranz You've spent some time in cobra, any idea why this is special cased? It seems like it would be covered in one of the two cases directly above. Upon exiting here: https://github.com/openshift/origin/blob/master/Godeps/_workspace/src/github.com/spf13/cobra/command.go#L458, err has the expected value. Instead of printing that error, cobra is re-parsing the args using the root command and printing the root command's message. It seems really strange.

  8. thoraxe commented on Mar 18, 2015

    @thoraxe
    Contributor

    Should we close this since "osc login" is now a "real" command? @brenton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions