Created
April 8, 2021 16:28
-
-
Save pkerpedjiev/2fded934a6c970e876152b08b62a4f70 to your computer and use it in GitHub Desktop.
start snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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