Compare commits

2 Commits

Author SHA1 Message Date
36687b2f3c Remove unused tasks.yaml 2023-10-19 17:45:34 +01:00
e158d0f6d1 Add url command to {en,de}code text 2023-10-19 17:42:00 +01:00

View File

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