rename ctx-watch -> ctx-unwatch (#725)

pull/727/head
Paweł Płatek 6 years ago committed by GitHub
parent 5c67072108
commit ab1e091987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -175,7 +175,7 @@ def contextwatch(expression, cmd=None):
parser = argparse.ArgumentParser()
parser.description = """Removes an expression previously added to be watched."""
parser.add_argument("expression", type=str, help="The expression to be removed from context")
@pwndbg.commands.ArgparsedCommand(parser, aliases=['ctx-watch', 'cunwatch'])
@pwndbg.commands.ArgparsedCommand(parser, aliases=['ctx-unwatch', 'cunwatch'])
def contextunwatch(expression):
global expressions
expressions = set((exp,cmd) for exp,cmd in expressions if exp != expression)

Loading…
Cancel
Save