dotfiles/.emacs.d/snippets/python-mode/parse_args

9 lines
195 B
Plaintext
Raw Normal View History

2017-12-21 17:29:29 +01:00
# -*- mode: snippet -*-
# name: parse_args
# key: pargs
# group: argparser
# --
def parse_arguments():
parser = argparse.ArgumentParser(description='$1')
$0
return parser.parse_args()