nudatus1
Remove comments from python 3 scripts
Usage
nudatus input
[output]
nudatus --version
nudatus -h
Overview
nudatus is a utility to remove comments from Python 3 scripts.
nudatus was created to help fit longer, heavily-documented Python programs onto the micro:bit single-board computer (SBC), but it should be suitable for similar platforms with restricted storage capacity.
Arguments
- input
-
a Python script to remove comments from
- output
-
a file to write the stripped Python script to. If output is not specified, output will be written to STDOUT.
Options
-
--version -
print version number and exit
-
-h -
print help, then exit
Examples
Remove comments from the script script.py and write the stripped file to script-min.py:
-
nudatus script.py script-min.py
Releases
4 releases since Debian 10 (Buster); the text changed 2 times.