Skip to content

Instantly share code, notes, and snippets.

@pckujawa
Created May 8, 2012 01:59
Show Gist options
  • Save pckujawa/2631963 to your computer and use it in GitHub Desktop.
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
USAGE = """
Usage: %s <action> [<action parameters>]
""" % os.path.basename(sys.argv[0])
@pckujawa
Copy link
Author

pckujawa commented May 8, 2012

Borrowed from PEBL, https://github.com/abhik/pebl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment