Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
constarg committed Apr 21, 2022
2 parents 8b75e7a + e7a3ded commit d1ca4b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ After this the program will be installed and ready to run.
Below will be analyzed how the library can be used.<br><br>

## Initializing the builder
An empty c_builder pointer must be defined to start building the terminal tool.
A variable with type tool_builder can be defined like below
```C
struct tool_builder builder;
```
Expand All @@ -50,7 +50,7 @@ tool_builder_init(&builder);
Done! now your builder is ready to build your tool!.
## Initialize help
The help command is the classic command that all terminal-based tools have. The library has the feature to be creat automatically this commmand based on the tool's commands. Or the user can ignore it and make his own help command.
The help command is the classic command that all terminal-based tools have. The library has the feature to create automatically this commmand based on the tool's commands. Or the user can ignore it and make his own help command.
To enable this feature, initiaize the help command as below.
```C
tool_builder_init_help(&builder, "tool-name");
Expand Down
2 changes: 1 addition & 1 deletion include/tool_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <malloc.h>
#include <string.h>

#define TOOL_BUILDER_V 1.0
#define TOOL_BUILDER_V 1.5

// errors
#define TOOL_BUILDER_WRONG_ARG_NUM -1
Expand Down

0 comments on commit d1ca4b8

Please sign in to comment.