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

9 lines
195 B
Plaintext

# -*- mode: snippet -*-
# name: parse_args
# key: pargs
# group: argparser
# --
def parse_arguments():
parser = argparse.ArgumentParser(description='$1')
$0
return parser.parse_args()