Skip to content

Commit

Permalink
docs: Update README and --help option to show tab key functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Veneckiy authored and Sergey Veneckiy committed Jun 11, 2024
1 parent 13892a6 commit 5084c3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Flex your math muscles with uc (Unix Calculator)'s ability to handle up to 30+di

🌋 Quick Result Recall! 🔙

Messed up? Just hit the up arrow and uc (Unix Calculator) retrieves your last result faster than a lightning strike! ⚡
Messed up? Just hit the up arrow and uc (Unix Calculator) retrieves your last result faster than a lightning strike! Press <Tab> key to insert your previous result to expression!

🌋 Chain Calculations! ⚡

Expand Down
18 changes: 10 additions & 8 deletions handle_arguments.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ void print_help() {
printf(" -v, --version Print the version information and exit.\n");
printf(" -h, --help Print this help message and exit.\n");
printf("\n");
printf("Commands:\n");
printf(" > tab (Add to Expression field previous result)\n");
printf("\n");
printf(" > e (Switch to Exponent calculation mode)\n");
printf(" Enter Base: 2\n");
printf(" Enter Exponent: 8\n");
printf(" 256\n");
printf("\n");
printf(" > q (Exit)\n");
printf("\n");
printf("Examples:\n");
printf(" > 20 000 + 5\n");
printf(" 20 005\n");
Expand All @@ -27,14 +37,6 @@ void print_help() {
printf(" > 800 000 / 7\n");
printf(" 114 285.7143\n");
printf("\n");
printf(" > e\n");
printf(" Enter Base: 2\n");
printf(" Enter Exponent: 8\n");
printf(" 256\n");
printf("\n");
printf(" > q\n");
printf(" exit\n");

}

void handle_arguments(int argc, char *argv[]) {
Expand Down

0 comments on commit 5084c3d

Please sign in to comment.