Compare commits
2 Commits
2dc143a839
...
36687b2f3c
Author | SHA1 | Date | |
---|---|---|---|
36687b2f3c | |||
e158d0f6d1 |
8
url/url
8
url/url
@ -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_plus,
|
'encode': parse.quote,
|
||||||
'decode': parse.unquote_plus,
|
'decode': parse.unquote,
|
||||||
}[args.command](args.text))
|
}[args.command](args.text)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user