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

Option() validators #89

Closed
fwkz opened this issue May 13, 2016 · 0 comments
Closed

Option() validators #89

fwkz opened this issue May 13, 2016 · 0 comments
Assignees

Comments

@fwkz
Copy link
Collaborator

fwkz commented May 13, 2016

From now on Option() can have validators that will transform it's value.

class Exploit(exploits.Exploit):
    target = exploits.Option('', 'Target address e.g. http://192.168.1.1', validators=(validators.url, validators.foo, validators.bar))
@fwkz fwkz self-assigned this May 13, 2016
@fwkz fwkz added this to the Bad Blood 2.2.0 milestone May 13, 2016
@fwkz fwkz closed this as completed May 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant