Skip to content

Instantly share code, notes, and snippets.

@guestl
Created February 23, 2017 16:20
Show Gist options
  • Select an option

  • Save guestl/a035aa502b5d6411c54216244494fd34 to your computer and use it in GitHub Desktop.

Select an option

Save guestl/a035aa502b5d6411c54216244494fd34 to your computer and use it in GitHub Desktop.
Check wether no arguments in command line for the script
if not len(sys.argv) > 1:
# There are no command-line args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment