summaryrefslogtreecommitdiff
path: root/snippets/python-mode/try-argv
blob: fdcac6b89de8ca157fb575025539134fd32afac6 (plain)
1
2
3
4
5
6
7
8
9
# -*- mode: snippet -*-
# key: targv
# --
try:
    _, $1 = sys.argv
except ValueError:
    sys.exit(__doc__)

$0