rougeth / knocker

:door::punch: Yet another port knock client
21 stars 10 forks source link

adding udp #3

Closed Guilhermeslucas closed 6 years ago

Guilhermeslucas commented 7 years ago

Solving issue #2

Guilhermeslucas commented 6 years ago

Done!

rougeth commented 6 years ago

Sorry @Guilhermeslucas, I wasn't clear enough. argparser has an option called choices, you could do something like:

parser.add_argument('-p', '--protocol', choices=['tcp', 'udb'], default='tcp')

Got it?

Guilhermeslucas commented 6 years ago

Is this it?