Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pkerpedjiev/2fded934a6c970e876152b08b62a4f70 to your computer and use it in GitHub Desktop.
Save pkerpedjiev/2fded934a6c970e876152b08b62a4f70 to your computer and use it in GitHub Desktop.
start snippet
<snippet>
<content><![CDATA[
#!/usr/bin/python
import sys
import argparse
def main():
parser = argparse.ArgumentParser(description="""
${1:description}
""")
#parser.add_argument('argument', nargs=1)
#parser.add_argument('-o', '--options', default='yo',
# help="Some option", type='str')
#parser.add_argument('-u', '--useless', action='store_true',
# help='Another useless option')
args = parser.parse_args()
$0
if __name__ == '__main__':
main()
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>start</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment