Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMark Chesney
11,747 Pointsshell/console question: python -m flag
Hi, simple question but my web searches couldn't pull up a good answer: what does the -m flag mean? examples:
python -m unittest
python -m doctest
Thank you!
1 Answer
Eduardo Valencia
12,444 PointsHi. This is so Python can run modules. Here is a link to an answer on Stack Overflow: What is the purpose of the m switch?
Also, I think you did not find anything on your web searches because you did not surround -m
with double quotes. Try that next time if you run into something similar.
Mark Chesney
11,747 PointsMark Chesney
11,747 Pointsthanks Eduardo! (Treehouse doesn't allow me to upvote your answer, for some reason; otherwise I most certainly would!)