Skip to content

Upgrade the logic for parsing flags and add test. - #1

Merged
Carrotman42 merged 2 commits into
GoogleCloudPlatform:masterfrom
Carrotman42:master
Mar 22, 2016
Merged

Upgrade the logic for parsing flags and add test.#1
Carrotman42 merged 2 commits into
GoogleCloudPlatform:masterfrom
Carrotman42:master

Conversation

@Carrotman42

Copy link
Copy Markdown
Contributor

Don't require -dir unless -fuse or -instances_metadata is used, or if
-instances contains a unix socket.

Don't allow -instances_metadata unless running on GCE.

Give a nicer error if windows users try to use -instances.

Give a nicer message for systems which don't support FUSE and forgot to
set -instances.

Don't require -dir unless -fuse or -instances_metadata is used, or if
  -instances contains a unix socket.

Don't allow -instances_metadata unless running on GCE.

Give a nicer error if windows users try to use -instances.

Give a nicer message for systems which don't support FUSE and forgot to
  set -instances.
case 3:
// User provided a host and port; use that.
ret.Network = spl[0]
ret.Address = fmt.Sprintf("%s:%s", spl[1], spl[2])

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. It looks like this makes #2 redundant with this change, right? For maximum compatibility, would you want to do protocol:port(optional :address)? Or do you think it is more intuitive to do protocol:address:port? Thanks for adding in the option to specify what addresses to listen! Jason

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's more intuitive to do network:host:port since host:port is the most common order when doing networking things.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants