Skip to content

Rename dgraph --dgraph option#3273

Merged
codexnull merged 10 commits intomasterfrom
javier/remove_dgraph_option
Apr 11, 2019
Merged

Rename dgraph --dgraph option#3273
codexnull merged 10 commits intomasterfrom
javier/remove_dgraph_option

Conversation

@codexnull
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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


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

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)


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

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
Copy Markdown
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