Skip to content

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

License

Notifications You must be signed in to change notification settings

hirotk/Decomment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages