hirotk / Decomment

This CLI tool removes comments from C#, F#, C++, Java, JavaScript, OCaml, Haskell, and Python source code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decomment

This CLI tool removes comments from C#, F#, C++, Java, JavaScript, OCaml, Haskell, and Python source code.

Demo

demo

Usage

Remove all comments.

% Decomment Foo.cs

Features

  • Remove all comments except for documentation comments.
  • Replace all comments with indented empty lines.

Remove all comments except for document comments.

% Decomment -d Foo.cs

Replace all comments with indented empty lines.

% Decomment -e Foo.cs

Show help.

 % Decomment -h
Usage: Decomment [-d] [-e] <path>
    -d : remove comments except for document comments
    -e : replace comments with indented empty lines 
    <path> : path to a source code file
            (*.cs, *.fs, *.java *.cpp, *js, *.ml, *.hs, *.py)"

About

This CLI tool removes comments from C#, F#, C++, Java, JavaScript, OCaml, Haskell, and Python source code.

License:MIT License


Languages

Language:F# 100.0%