Skip to content

Commit 0bda540

Browse files
committed
added:
- larger set of options - banner with logo
1 parent 58bbfc8 commit 0bda540

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

main

0 Bytes
Binary file not shown.

src/hlp/hlp_info.h

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,34 @@ void print_err_info() {
55
}
66

77
void print_hlp_info() {
8-
printf("spynix v2.0.0\n \
8+
printf("\n \
9+
____ _\n \
10+
/ ___| _ __ _ _ _ __ (_)_ __\n \
11+
\\___ \\| '_ \\| | | | '_ \\| \\ \\/ /\n \
12+
___) | |_) | |_| | | | | |> <\n \
13+
|____/| .__/ \\__, |_| |_|_/_/\\_\\\n \
14+
|_| |___/\n\n \
915
Info:\n\t \
10-
-h - show this menu\n\t \
11-
-v - show version\n\n \
16+
-h or --help - show this menu\n\t \
17+
-v or --version - show version\n\n \
1218
Options:\n\t \
13-
-a - show summary info about system, cpu, ram and rom\n\t \
19+
-a or --all - show summary info about system, cpu, ram and rom\n\t \
1420
-sys - show system info\n\t \
1521
-cpu - show short Central Process Unit info\n\t \
1622
-ram - show Random Access Memory info\n\t \
1723
-rom - show Read Only Memory info\n\n \
1824
Advanced:\n\t \
19-
-cpu -f - show full Central Process Unit info\n");
25+
-cpu -f or -cpu --full - show full Central Process Unit info\n");
2026
}
2127

2228
void print_ver_info() {
23-
printf("spynix v2.0.0\n\nFor more info visit: https://github.com/git-user-cpp/spynix");
29+
printf("\n \
30+
____ _\n \
31+
/ ___| _ __ _ _ _ __ (_)_ __\n \
32+
\\___ \\| '_ \\| | | | '_ \\| \\ \\/ /\n \
33+
___) | |_) | |_| | | | | |> <\n \
34+
|____/| .__/ \\__, |_| |_|_/_/\\_\\\n \
35+
|_| |___/\n\n \
36+
spynix v2.0.0\n\n \
37+
For more info visit: https://github.com/git-user-cpp/spynix\n");
2438
}

src/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ int main(int argc, char **argv) {
1212
print_ram_info();
1313
print_rom_info();
1414
} else if (argc == 2) {
15-
if(strcmp(argv[1], "-h") == 0) {
15+
if(strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) {
1616
print_hlp_info();
17-
} else if(strcmp(argv[1], "-a") == 0) {
17+
} else if(strcmp(argv[1], "-a") == 0 || strcmp(argv[1], "--all") == 0) {
1818
print_sys_info();
1919
print_cpu_info();
2020
print_ram_info();
@@ -27,13 +27,13 @@ int main(int argc, char **argv) {
2727
print_ram_info();
2828
} else if(strcmp(argv[1], "-rom") == 0) {
2929
print_rom_info();
30-
} else if(strcmp(argv[1], "-v") == 0) {
30+
} else if(strcmp(argv[1], "-v") == 0 || strcmp(argv[1], "--version") == 0) {
3131
print_ver_info();
3232
} else {
3333
print_err_info();
3434
}
3535
} else if(argc == 3){
36-
if((strcmp(argv[1], "-cpu") == 0) && (strcmp(argv[2], "-f") == 0)) {
36+
if((strcmp(argv[1], "-cpu") == 0) && ((strcmp(argv[2], "-f") == 0) || (strcmp(argv[2], "--full") == 0))) {
3737
print_full_cpu_info();
3838
} else {
3939
print_err_info();

0 commit comments

Comments
 (0)