OHCOUNT(1)

๐Ÿ’– OHCOUNT โ€” like, the manual page, bestie ๐Ÿ’–

okay so this is the manual for ohcount, version 3.0.0, and it lives in the User Commands section of your friendly neighbourhood manual. pull up a chair, grab a strawberry ๐Ÿ“, and let's get into it.


โœจ NAME โœจ

ohcount โ€” bestie this is literally the manual page for ohcount 3.0.0 ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

ohcount [option] [paths...]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

It's the Ohloh source code line counter command line tool. that's the whole vibe. it counts your lines.

http://www.ohloh.net/

๐Ÿ‘‘ [option] can be one of the following:

  • -a, --annotate
  • -d, --detect
  • -h, --help
  • -i, --individual
  • -l, --license
  • -re
  • -s, --summary

๐ŸŽ€ OPTIONS ๐ŸŽ€

  • -a, --annotate โ€” show annotated source code ๐Ÿ’–

Everything in the source code files it finds inside the paths you gave it gets emitted to stdout. and every single line gets prefixed with a tab-delimited language name plus its semantic categorization โ€” which is one of code, comment, or blank. yes, it labels every line's whole personality. main character energy fr fr.

  • -d, --detect โ€” find source code files ๐Ÿ”

Recursively hunts down every source code file within the paths you gave it. for each source code file it finds, the file name gets emitted to stdout, prefixed with a tab-delimited language name. it's giving detective but make it text output.

  • -h, --help โ€” display this message ๐Ÿซถ

that's it. that's the option. it shows you the help. iconic behaviour honestly.

  • -i, --individual โ€” count lines of code per file ๐Ÿงฎ

Counts lines in all source code files within the given paths, and emits a report of the lines of code, comments, and blanks in each language per file. so it's per-file, not just one big total. detail-oriented queen โœจ

  • -l, --license โ€” displays detected licensing information contained in each source code file ๐Ÿ“œ

no cap, it sniffs out the license info sitting inside each source code file and shows you. legal girlies rise ๐ŸŒˆ

  • -re โ€” prints raw entity information to the screen (mainly for debugging) ๐Ÿ’€

it just dumps the raw entity info straight to your screen. the manpage itself says it's mainly for debugging โ€” so like, this is a peek-behind-the-curtain moment, not your everyday tool. iykyk ๐Ÿ™ˆ

  • -s, --summary โ€” count lines of code (default) ๐Ÿ”ฅ

Counts lines in all source code files within the given paths, and emits a report of the total number of lines of code, comments, and blanks in each language. and yes bestie, this is the default action โ€” if you don't pick anything, this is what you get. the default. the moment. periodt.


๐ŸŒˆ [paths] ๐ŸŒˆ

[paths] can refer to any number of individual files or directories.

  • Directories will be probed recursively. it goes all the way down, no skipping levels, we love a thorough queen ๐Ÿงš
  • If no path is given, the current directory will be used. so if you're standing in a folder and just type ohcount, it counts here. convenient fr fr.

โญ heads up bestie: if you pass nothing at all, you're still getting a summary of whatever's in the current directory. no args, no problem. ๐Ÿ’œ

and that's the whole page, babes. this was ohcount 3.0.0, from way back in September 2011, hanging out in the User Commands section. love that for her. slay, stay counting those lines, and drink some water ๐Ÿ’–โœจ๐ŸŽ€๐Ÿฆ‹๐ŸŒธ๐Ÿ’…๐Ÿซถ

๐Ÿ“ฆ where this page comes from