policy/auth.go
func FromCommandLine(cmdLine *cmd.CommandLine) (*API, error) {
	raw, err := rsapi.FromCommandLine(cmdLine)
	cmdLine.Host = HostFromLogin(cmdLine.Host)

	if err != nil {
		return nil, err
	}
	return fromAPI(raw), nil
}
func FromCommandLine(cmdLine *cmd.CommandLine) (*API, error) {
	raw, err := rsapi.FromCommandLine(cmdLine)
	cmdLine.Host = HostFromLogin(cmdLine.Host)

	if err != nil {
		return nil, err
	}
	return fromAPI(raw), nil
}
// FromCommandLine builds a client from the command line.