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

dnsdist cli option improvements #6435

Merged
merged 8 commits into from
Apr 3, 2018
Merged

Conversation

zeha
Copy link
Collaborator

@zeha zeha commented Apr 3, 2018

Short description

Tiny improvements to the available dnsdist program options, and the --help and --version output.

Intended to be on top of #6433, might need a rebase then.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled and tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@zeha zeha added the dnsdist label Apr 3, 2018
@Habbie
Copy link
Member

Habbie commented Apr 3, 2018

Intended to be on top of #6433, might need a rebase then.

Please feel free to include 6433 in this one.

@rgacogne rgacogne added this to the dnsdist-1.3.x milestone Apr 3, 2018
@zeha
Copy link
Collaborator Author

zeha commented Apr 3, 2018

Includes #6433 now!

@Habbie Habbie mentioned this pull request Apr 3, 2018
7 tasks
Copy link
Member

@rgacogne rgacogne left a comment

Choose a reason for hiding this comment

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

Just a single nit, looks very good otherwise!

pdns/dnsdist.cc Outdated
@@ -2082,9 +2084,9 @@ try
string optstring;
for(;;) {
#ifdef HAVE_LIBSODIUM
int c=getopt_long(argc, argv, "a:hcde:C:k:l:vp:g:u:V", longopts, &longindex);
int c=getopt_long(argc, argv, "a:hce:C:k:l:v:g:u:V", longopts, &longindex);
Copy link
Member

Choose a reason for hiding this comment

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

--verbose doesn't take any argument so the : after the v should go (same thing below).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@zeha
Copy link
Collaborator Author

zeha commented Apr 3, 2018

plus more cleanup...

@rgacogne rgacogne merged commit 4c4e761 into PowerDNS:master Apr 3, 2018
@zeha zeha deleted the dnsdist-opts branch April 3, 2018 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants