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

use '+' as option-prefix in sub-commands, as tokens might start with "-" #19

Merged
merged 1 commit into from
Jan 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dehydrated-hook-ddns-tsig.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ def parse_args():

parser_deploychallenge = subparsers.add_parser(
'deploy_challenge',
prefix_chars='+',
help='make ACME challenge available via DNS')
parser_deploychallenge.set_defaults(
_func=deploy_challenge,
Expand All @@ -658,6 +659,7 @@ def parse_args():

parser_cleanchallenge = subparsers.add_parser(
'clean_challenge',
prefix_chars='+',
help='remove ACME challenge from DNS')
parser_cleanchallenge.set_defaults(
_func=clean_challenge,
Expand All @@ -684,6 +686,7 @@ def parse_args():

parser_deploycert = subparsers.add_parser(
'deploy_cert',
prefix_chars='+',
help='deploy certificate obtained from ACME [NO-OP]')
parser_deploycert.set_defaults(
_func=deploy_cert,
Expand Down Expand Up @@ -722,6 +725,7 @@ def parse_args():

parser_unchangedcert = subparsers.add_parser(
'unchanged_cert',
prefix_chars='+',
help='unchanged certificate obtained from ACME [NO-OP]')
parser_unchangedcert.set_defaults(
_func=unchanged_cert,
Expand Down Expand Up @@ -756,6 +760,7 @@ def parse_args():

parser_invalid_challenge = subparsers.add_parser(
'invalid_challenge',
prefix_chars='+',
help='challenge response has failed [NO-OP]')
parser_invalid_challenge.set_defaults(
_func=invalid_challenge,
Expand All @@ -778,6 +783,7 @@ def parse_args():

parser_request_failure = subparsers.add_parser(
'request_failure',
prefix_chars='+',
help='challenge response has failed [NO-OP]')
parser_request_failure.set_defaults(
_func=request_failure,
Expand All @@ -804,13 +810,15 @@ def parse_args():

parser_startup_hook = subparsers.add_parser(
'startup_hook',
prefix_chars='+',
help='dehydrated is starting up (do some initial tasks) [NO-OP]')
parser_startup_hook.set_defaults(
_func=startup_hook,
_parser=parser_startup_hook)

parser_exit_hook = subparsers.add_parser(
'exit_hook',
prefix_chars='+',
help='dehydrated is shutting down (do some final tasks) [NO-OP]')
parser_exit_hook.set_defaults(
_func=exit_hook,
Expand Down