Skip to content

Commit

Permalink
update docs on config file default location #846
Browse files Browse the repository at this point in the history
  • Loading branch information
AlDanial committed Jul 26, 2024
1 parent c4b81af commit 30f395e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2838,7 +2838,25 @@ cloc will look for this file in the following default locations:
/home/USERNAME/.config/cloc/options.txt

# Windows
C:\Users\USERNAME\AppData\cloc\options.txt
C:\Users\USERNAME\AppData\Roaming\cloc
</pre>

If you run cloc with ``--help``, cloc will tell you
where it expects to find this config file file. The information
appears by the explanation of the ``--config`` switch after
the text ``the default location of``.
On Unix-like operating systems, this can be simplifed to

<pre>
&gt; cloc --help | grep "default location"
the default location of /home/al/.config/cloc/options.txt.
</pre>

and in a Windows ``cmd`` terminal with

<pre>
&gt; cloc --help | findstr default | findstr location
the default location of C:\Users\al\AppData\Roaming\cloc
</pre>

Place each switch and arguments, if any, on a line by itself.
Expand Down

0 comments on commit 30f395e

Please sign in to comment.