Created
May 8, 2012 01:59
-
-
Save pckujawa/2631963 to your computer and use it in GitHub Desktop.
Including the name of the script dynamically, e.g. for a USAGE prompt
This file contains hidden or 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
USAGE = """ | |
Usage: %s <action> [<action parameters>] | |
""" % os.path.basename(sys.argv[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Borrowed from PEBL, https://github.com/abhik/pebl