support/scripts/pycompile: add main entry point
authorRobin Jarry <robin.jarry@6wind.com>
Tue, 8 Sep 2020 08:10:23 +0000 (10:10 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 9 Sep 2020 19:16:20 +0000 (21:16 +0200)
commit7b3025f93ef47ac0ce980d0847748c363ab4176b
tree0c4ba15ae8943ae3e88ab4a3984cb9a2e1525f84
parent0711cfc530ce57a079223ce566a274e35f9daa65
support/scripts/pycompile: add main entry point

Only run code when the script is executed directly (not imported).
Factorize command description by using the script's __doc__ variable.
Fix typo in --force help message.

Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
support/scripts/pycompile.py