Skip to content

Instantly share code, notes, and snippets.

@Feuermurmel
Last active July 19, 2019 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Feuermurmel/1e60c225a6ad8fa1cbe2a8695d7cd97d to your computer and use it in GitHub Desktop.
Save Feuermurmel/1e60c225a6ad8fa1cbe2a8695d7cd97d to your computer and use it in GitHub Desktop.
Script to show arguments with which a command is run
#! /usr/bin/env python3
import sys
def main():
args = sys.argv
for i, x in enumerate(args):
print('[{}] = {!r}'.format(i, x))
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment