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

$0