Railsbin – The vulnerable pastebin service!
Editing Paste
Private
Title
Content
from argparse import ArgumentParser, Namespace # This maps --o to --of wrongly :( args = ['--o', 'test'] parser = ArgumentParser() parser.add_argument('--of') namespace = Namespace() args = parser.parse_known_args(args, namespace) print(args)
Show
|
Back