Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename dgraph --dgraph option #3273

Merged
merged 10 commits into from
Apr 11, 2019
Merged

Rename dgraph --dgraph option #3273

merged 10 commits into from
Apr 11, 2019

Conversation

codexnull
Copy link
Contributor

@codexnull codexnull commented Apr 9, 2019

Having a command line option --dgraph that's the same as the program name dgraph looks ugly. Rename it to --alpha. For consistency, do it across all subcommands that use it (live, increment, and acl).

Change summary:

  • Rename subcommand long options --dgraph and --addr to --alpha and short option -d to -a.
  • Rename acl --auth_token short option from -a to -t.
  • Update all tests to use the renamed options.

This change is Reviewable

Copy link
Contributor

@srfrog srfrog left a comment

Choose a reason for hiding this comment

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

Reviewed 12 of 12 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Contributor

@srfrog srfrog left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@@ -35,7 +35,7 @@ import (
)

var (
addr = flag.String("addr", "localhost:9080", "dgraph address")
alpha = flag.String("alpha", "localhost:9080", "dgraph alpha address")

Choose a reason for hiding this comment

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

alpha is unused (from varcheck)

@@ -35,7 +35,7 @@ import (
)

var (
addr = flag.String("addr", "localhost:9080", "Dgraph alpha address")
alpha = flag.String("alpha", "localhost:9080", "Dgraph alpha address")

Choose a reason for hiding this comment

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

alpha is unused (from varcheck)

Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 12 of 12 files at r1, 6 of 6 files at r2.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @codexnull)

@codexnull codexnull merged commit 580c28e into master Apr 11, 2019
@codexnull codexnull deleted the javier/remove_dgraph_option branch April 11, 2019 23:35
danielmai added a commit that referenced this pull request Apr 11, 2019
danielmai added a commit that referenced this pull request Apr 12, 2019
danielmai added a commit that referenced this pull request Apr 12, 2019
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 19, 2019
* Rename --dgraph option to --alpha.

* Rename --addr option to --alpha.

* Update tests to use renamed options.
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 19, 2019
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants