decomment(1)

πŸ“¦
version 2.9 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– decomment(1) β€” the manual, but make it cute πŸ’–

okay so bestie, welcome to decomment, a General Commands Manual classic. buckle up, this one's short and sweet πŸ“


✨ NAME ✨

decomment β€” remove comments from C and C++ files 🧚

no cap, that's the whole job. it takes your files and it takes the comments out of them. that's it, that's the girl πŸ’…


✨ SYNOPSIS ✨

decomment [file(s)]

that's literally it. give her some files or don't, she's flexible 🫢


✨ DESCRIPTION ✨

so here's the vibe: decomment processes the files you name, or β€” if you name none β€” she reads from standard input. either way she copies the contents over to standard output with the comments removed. iconic behaviour honestly 🌸

and here's the part that lowkey matters most: line numbers in the input file(s) and out file(s) are unchanged. like, if main() shows up on line 40 in the input, it is still on line 40 in the output, even after all the comment removal happened. she doesn't reflow, she doesn't shift, she doesn't do any of that. the line numbers are preserved, periodt πŸ‘‘


✨ APPLICATIONS ✨

so why would you even want this? because decomment can be used to remove comments in order to simplify other programs which process source code. basically she does the tedious scrubbing so your other tools don't have to deal with comments at all. a little act of service for your toolchain, fr fr πŸŽ€


✨ DIAGNOSTICS ✨

No parsing-related diagnostics. ✨

like, none. zero. she's not gonna yell at you about parsing. so chill πŸ’œ


✨ WARNINGS ✨

this section is empty in the original, bestie β€” not a single warning listed here. nothing to report, no notes πŸ™ˆ


✨ AUTHOR ✨

Paul Bame πŸ‘‘ β€” thank you for your service, king 🫢


✨ SEE ALSO ✨

go read those too, iykyk πŸ¦‹


and that's the whole page, bestie!! πŸ’– this was decomment(1) from the General Commands Manual, dated 17Jan2021. slay, ate, no crumbs. go remove some comments πŸŒˆβœ¨πŸŽ€