Compare commits

2 Commits

Author SHA1 Message Date
2dc143a839 Add url command to {en,de}code text 2023-10-19 17:48:05 +01:00
5c62ff219c Remove unused tasks.yaml 2023-10-19 17:47:46 +01:00

View File

@@ -9,10 +9,10 @@ def main():
cli.add_argument('command', choices=['encode', 'decode']) cli.add_argument('command', choices=['encode', 'decode'])
cli.add_argument('text') cli.add_argument('text')
args = cli.parse_args() args = cli.parse_args()
{ print({
'encode': parse.quote, 'encode': parse.quote_plus,
'decode': parse.unquote, 'decode': parse.unquote_plus,
}[args.command](args.text) }[args.command](args.text))
if __name__ == '__main__': if __name__ == '__main__':