diff options
Diffstat (limited to '.emacs.d/snippets/python-mode/parse_args')
| -rw-r--r-- | .emacs.d/snippets/python-mode/parse_args | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.emacs.d/snippets/python-mode/parse_args b/.emacs.d/snippets/python-mode/parse_args new file mode 100644 index 0000000..aa61070 --- /dev/null +++ b/.emacs.d/snippets/python-mode/parse_args | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: parse_args | ||
| 3 | # key: pargs | ||
| 4 | # group: argparser | ||
| 5 | # -- | ||
| 6 | def parse_arguments(): | ||
| 7 | parser = argparse.ArgumentParser(description='$1') | ||
| 8 | $0 | ||
| 9 | return parser.parse_args() \ No newline at end of file | ||
