From 40693c43a1b4c91935593f67d9bef37440d9d0f9 Mon Sep 17 00:00:00 2001 From: Leandro Ostera Date: Wed, 9 Dec 2015 20:30:14 +0100 Subject: [PATCH 1/2] Adds -m syntax to python page --- pages/common/python.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/python.md b/pages/common/python.md index 7d383e156..8ee9e52d8 100644 --- a/pages/common/python.md +++ b/pages/common/python.md @@ -13,3 +13,7 @@ - Execute Python language single command `python -c {{command}}` + +- Execute a Python module (SimpleHTTPServer, json.tool, etc) + +`python -m {{moduleName}} {{parameters}}` From 55909a736b38c67abe97da96e6c7999fc2882afb Mon Sep 17 00:00:00 2001 From: Leandro Ostera Date: Wed, 9 Dec 2015 21:28:39 +0100 Subject: [PATCH 2/2] Rewords description and command. --- pages/common/python.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/python.md b/pages/common/python.md index 8ee9e52d8..ddce5c7b7 100644 --- a/pages/common/python.md +++ b/pages/common/python.md @@ -14,6 +14,6 @@ `python -c {{command}}` -- Execute a Python module (SimpleHTTPServer, json.tool, etc) +- Run library module as a script (terminates option list) -`python -m {{moduleName}} {{parameters}}` +`python -m {{module}} {{arguments}}`