This repository was archived by the owner on Feb 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ yarn link
3535```
3636
3737## Usage
38- This tool will produce single source file from multiple C/C++ files and display produced content on standard output.
38+ This tool will produce single source file from multiple C/C++ files. By default produced content is displayed on
39+ the standard output. To save it into a file use option ` -o ` or ` --output ` .
40+
3941File passed as an argument will be processed similarly to what preprocessor would do. It means all included local
4042files (ex. ` #include "header.hpp" ` ) will processed and added to output in place of the include directive.
4143Program will search for include files first in directory where currently processed file is located and then in
@@ -65,10 +67,14 @@ Process `main.cpp` and display produced content on standard output:
6567cpp-merge main.cpp
6668```
6769
68- Process ` main.cpp ` and redirect output to file ` single.cpp ` :
70+ Process ` main.cpp ` and save output to file ` single.cpp ` :
6971```
7072cpp-merge main.cpp > single.cpp
7173```
74+ or:
75+ ```
76+ cpp-merge --output single.cpp main.cpp
77+ ```
7278
7379Specify additional include and source directory:
7480```
You can’t perform that action at this time.
0 commit comments