mirror of
https://github.com/Dr-Noob/cpufetch
synced 2025-08-30 22:05:30 +00:00
[v0.99] Update --help and manual page
This commit is contained in:
69
cpufetch.1
69
cpufetch.1
@@ -1,35 +1,50 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.2.
|
||||
.TH CPUFETCH "1" "June 2021" "cpufetch v0.97 (x86_64 build)" "User Commands"
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.3. It was also manually adapted to look correctly
|
||||
.TH CPUFETCH "1" "August 2021" "cpufetch v0.99 (Linux x86_64 build)" "User Commands"
|
||||
.SH NAME
|
||||
cpufetch \- Simple yet fancy CPU architecture fetching tool
|
||||
cpufetch \- manual page for cpufetch v0.99 (Linux x86_64 build)
|
||||
.SH SYNOPSIS
|
||||
.B cpufetch
|
||||
[\fI\,OPTION\/\fR]...
|
||||
.SH DESCRIPTION
|
||||
Print detailed information about the CPU architecture. cpufetch displays information like the number of cores, microarchitecture, frequency, cache and peak performance. The program supports x86, x86_64 and ARM architectures and runs on GNU/Linux, Windows, Android and macOS (see https://github.com/Dr-Noob/cpufetch#1-support for more information)
|
||||
Simple yet fancy CPU architecture fetching tool
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB\-c\fR, \fB\-\-color\fR
|
||||
Set the color scheme (by default, cpufetch uses the system color scheme)
|
||||
.TP
|
||||
\fB\-s\fR, \fB\-\-style\fR
|
||||
Set the style of CPU art
|
||||
Set the style of CPU logo
|
||||
.TP
|
||||
\fB\-d\fR, \fB\-\-debug\fR
|
||||
Prints CPU model and cpuid levels (debug purposes)
|
||||
Print CPU model and cpuid levels (debug purposes)
|
||||
.TP
|
||||
\fB\-\-logo\-short\fR
|
||||
Show the short version of the logo
|
||||
.TP
|
||||
\fB\-\-logo\-long\fR
|
||||
Show the long version of the logo
|
||||
.TP
|
||||
\fB\-v\fR, \fB\-\-verbose\fR
|
||||
Prints extra information (if available) about how cpufetch tried fetching information
|
||||
Print extra information (if available) about how cpufetch tried fetching information
|
||||
.TP
|
||||
\fB\-\-logo\-intel\-old\fR
|
||||
Show the old Intel logo
|
||||
.TP
|
||||
\fB\-\-logo\-intel\-new\fR
|
||||
Show the new Intel logo
|
||||
.TP
|
||||
\fB\-F\fR, \fB\-\-full\-cpu\-name\fR
|
||||
Show the full CPU name (do not abbreviate it)
|
||||
.TP
|
||||
\fB\-r\fR, \fB\-\-raw\fR
|
||||
Prints raw cpuid data
|
||||
Print raw cpuid data (debug purposes)
|
||||
.TP
|
||||
\fB\-h\fR, \fB\-\-help\fR
|
||||
Prints this help and exit
|
||||
Print this help and exit
|
||||
.TP
|
||||
\fB\-V\fR, \fB\-\-version\fR
|
||||
Prints cpufetch version and exit
|
||||
.SH "COLORS:"
|
||||
Print cpufetch version and exit
|
||||
.SH COLORS
|
||||
.TP
|
||||
* "intel":
|
||||
Use Intel default color scheme
|
||||
@@ -37,16 +52,15 @@ Use Intel default color scheme
|
||||
* "amd":
|
||||
Use AMD default color scheme
|
||||
.TP
|
||||
* "ibm":
|
||||
* "ibm",
|
||||
Use IBM default color scheme
|
||||
.TP
|
||||
* "arm":
|
||||
Use ARM default color scheme
|
||||
.TP
|
||||
* custom:
|
||||
If color argument do not match "intel", "amd" or "arm", a custom scheme can be specified.
|
||||
4 colors must be given in RGB with the format: R,G,B:R,G,B:...The first 2 colors are the CPU art color and the next 2 colors are the text colors
|
||||
.SH "STYLES:"
|
||||
If the argument of \fB\-\-color\fR does not match any of the previous strings, a custom scheme can be specified. 5 colors must be given in RGB with the format: R,G,B:R,G,B:...The first 3 colors are the CPU art color and the next 2 colors are the text colors
|
||||
.SH STYLES
|
||||
.TP
|
||||
* "fancy":
|
||||
Default style
|
||||
@@ -56,18 +70,21 @@ Old cpufetch style
|
||||
.TP
|
||||
* "legacy":
|
||||
Fallback style for terminals that do not support colors
|
||||
.SH "EXAMPLES:"
|
||||
.SH LOGOS
|
||||
.TP
|
||||
cpufetch will try to adapt the logo size and the text to the terminal width. When the output (logo and text) is wider than the terminal width, cpufetch will print a smaller version of the logo (if it exists). This behavior can be overridden by \fB\-\-logo\-short\fR and \fB\-\-logo\-long\fR, which always sets the logo size as specified by the user, even if it is too big. After the logo selection (either automatically or set by the user), cpufetch will check again if the output fits in the terminal. If not, it will use a shorter name for the fields (the left part of the text). If, after all of this, the output still does not fit, cpufetch will cut the text and will only print the text until there is no space left in each line
|
||||
.SH EXAMPLES
|
||||
.TP
|
||||
Run cpufetch with Intel color scheme:
|
||||
.PP
|
||||
.IP
|
||||
\&./cpufetch \fB\-\-color\fR intel
|
||||
.PP
|
||||
.TP
|
||||
Run cpufetch with a custom color scheme:
|
||||
.PP
|
||||
\&./cpufetch \fB\-\-color\fR 239,90,45:210,200,200:100,200,45:0,200,200
|
||||
.SH "BUGS:"
|
||||
.IP
|
||||
\&./cpufetch \fB\-\-color\fR 239,90,45:210,200,200:0,0,0:100,200,45:0,200,200
|
||||
.SH BUGS
|
||||
.TP
|
||||
Report bugs to https://github.com/Dr\-Noob/cpufetch/issues
|
||||
.SH "NOTE:"
|
||||
Peak performance information is NOT accurate. cpufetch computes peak performance using the max frequency. However, to properly compute peak performance, you need to know the frequency of the CPU running AVX code, which is not be fetched by cpufetch since it depends on each specific CPU. For peak performance measurement see peakperf (https://github.com/Dr\-Noob/peakperf)
|
||||
.SH "AUTHOR:"
|
||||
Dr-Noob (https://github.com/Dr-Noob)
|
||||
|
||||
.SH NOTE
|
||||
.TP
|
||||
Peak performance information is NOT accurate. cpufetch computes peak performance using the max frequency of the CPU. However, to compute the peak performance, you need to know the frequency of the CPU running AVX code. This value is not be fetched by cpufetch since it depends on each specific CPU. To correctly measure peak performance, see: https://github.com/Dr\-Noob/peakperf
|
||||
|
@@ -43,54 +43,64 @@ void print_help(char *argv[]) {
|
||||
printf("Usage: %s [OPTION]...\n", argv[0]);
|
||||
printf("Simple yet fancy CPU architecture fetching tool\n\n");
|
||||
|
||||
printf("Options: \n");
|
||||
printf("OPTIONS: \n");
|
||||
printf(" -%c, --%s %*s Set the color scheme (by default, cpufetch uses the system color scheme)\n", c[ARG_COLOR], t[ARG_COLOR], (int) (max_len-strlen(t[ARG_COLOR])), "");
|
||||
printf(" -%c, --%s %*s Set the style of CPU art\n", c[ARG_STYLE], t[ARG_STYLE], (int) (max_len-strlen(t[ARG_STYLE])), "");
|
||||
printf(" -%c, --%s %*s Set the style of CPU logo\n", c[ARG_STYLE], t[ARG_STYLE], (int) (max_len-strlen(t[ARG_STYLE])), "");
|
||||
#ifdef ARCH_X86
|
||||
printf(" -%c, --%s %*s Prints CPU model and cpuid levels (debug purposes)\n", c[ARG_DEBUG], t[ARG_DEBUG], (int) (max_len-strlen(t[ARG_DEBUG])), "");
|
||||
printf(" -%c, --%s %*s Print CPU model and cpuid levels (debug purposes)\n", c[ARG_DEBUG], t[ARG_DEBUG], (int) (max_len-strlen(t[ARG_DEBUG])), "");
|
||||
#elif ARCH_PPC
|
||||
printf(" -%c, --%s %*s Print PVR register (debug purposes)\n", c[ARG_DEBUG], t[ARG_DEBUG], (int) (max_len-strlen(t[ARG_DEBUG])), "");
|
||||
#elif ARCH_ARM
|
||||
printf(" -%c, --%s %*s Prints main ID register values for all cores (debug purposes)\n", c[ARG_DEBUG], t[ARG_DEBUG], (int) (max_len-strlen(t[ARG_DEBUG])), "");
|
||||
printf(" -%c, --%s %*s Print main ID register values (debug purposes)\n", c[ARG_DEBUG], t[ARG_DEBUG], (int) (max_len-strlen(t[ARG_DEBUG])), "");
|
||||
#endif
|
||||
printf(" --%s %*s Shows the short version of the logo\n", t[ARG_LOGO_SHORT], (int) (max_len-strlen(t[ARG_LOGO_SHORT])), "");
|
||||
printf(" --%s %*s Shows the long version of the logo\n", t[ARG_LOGO_LONG], (int) (max_len-strlen(t[ARG_LOGO_LONG])), "");
|
||||
printf(" -%c, --%s %*s Prints extra information (if available) about how cpufetch tried fetching information\n", c[ARG_VERBOSE], t[ARG_VERBOSE], (int) (max_len-strlen(t[ARG_VERBOSE])), "");
|
||||
printf(" --%s %*s Show the short version of the logo\n", t[ARG_LOGO_SHORT], (int) (max_len-strlen(t[ARG_LOGO_SHORT])), "");
|
||||
printf(" --%s %*s Show the long version of the logo\n", t[ARG_LOGO_LONG], (int) (max_len-strlen(t[ARG_LOGO_LONG])), "");
|
||||
printf(" -%c, --%s %*s Print extra information (if available) about how cpufetch tried fetching information\n", c[ARG_VERBOSE], t[ARG_VERBOSE], (int) (max_len-strlen(t[ARG_VERBOSE])), "");
|
||||
#ifdef ARCH_X86
|
||||
printf(" --%s %*s Show the old Intel logo\n", t[ARG_LOGO_INTEL_OLD], (int) (max_len-strlen(t[ARG_LOGO_INTEL_OLD])), "");
|
||||
printf(" --%s %*s Show the new Intel logo\n", t[ARG_LOGO_INTEL_NEW], (int) (max_len-strlen(t[ARG_LOGO_INTEL_NEW])), "");
|
||||
printf(" -%c, --%s %*s Show the full CPU name (do not abbreviate it)\n", c[ARG_FULLCPUNAME], t[ARG_FULLCPUNAME], (int) (max_len-strlen(t[ARG_FULLCPUNAME])), "");
|
||||
printf(" -%c, --%s %*s Prints raw cpuid data\n", c[ARG_RAW], t[ARG_RAW], (int) (max_len-strlen(t[ARG_RAW])), "");
|
||||
printf(" -%c, --%s %*s Print raw cpuid data (debug purposes)\n", c[ARG_RAW], t[ARG_RAW], (int) (max_len-strlen(t[ARG_RAW])), "");
|
||||
#endif
|
||||
printf(" -%c, --%s %*s Prints this help and exit\n", c[ARG_HELP], t[ARG_HELP], (int) (max_len-strlen(t[ARG_HELP])), "");
|
||||
printf(" -%c, --%s %*s Prints cpufetch version and exit\n", c[ARG_VERSION], t[ARG_VERSION], (int) (max_len-strlen(t[ARG_VERSION])), "");
|
||||
printf(" -%c, --%s %*s Print this help and exit\n", c[ARG_HELP], t[ARG_HELP], (int) (max_len-strlen(t[ARG_HELP])), "");
|
||||
printf(" -%c, --%s %*s Print cpufetch version and exit\n", c[ARG_VERSION], t[ARG_VERSION], (int) (max_len-strlen(t[ARG_VERSION])), "");
|
||||
|
||||
printf("\nCOLORS: \n");
|
||||
printf(" * \"intel\": Use Intel default color scheme \n");
|
||||
printf(" * \"amd\": Use AMD default color scheme \n");
|
||||
printf(" * \"ibm\", Use IBM default color scheme \n");
|
||||
printf(" * \"arm\": Use ARM default color scheme \n");
|
||||
printf(" * custom: If color argument do not match \"intel\", \"amd\", \"ibm\" or \"arm\", a custom scheme can be specified.\n");
|
||||
printf(" 4 colors must be given in RGB with the format: R,G,B:R,G,B:...\n");
|
||||
printf(" The first 2 colors are the CPU art color and the next 2 colors are the text colors\n");
|
||||
printf(" * custom: If the argument of --color does not match any of the previous strings, a custom scheme can be specified.\n");
|
||||
printf(" 5 colors must be given in RGB with the format: R,G,B:R,G,B:...\n");
|
||||
printf(" The first 3 colors are the CPU art color and the next 2 colors are the text colors\n");
|
||||
|
||||
printf("\nSTYLES: \n");
|
||||
printf(" * \"fancy\": Default style\n");
|
||||
printf(" * \"retro\": Old cpufetch style\n");
|
||||
printf(" * \"legacy\": Fallback style for terminals that do not support colors\n");
|
||||
|
||||
printf("\nLOGOS: \n");
|
||||
printf(" cpufetch will try to adapt the logo size and the text to the terminal width. When the output (logo and text) is wider than\n");
|
||||
printf(" the terminal width, cpufetch will print a smaller version of the logo (if it exists). This behavior can be overridden by\n");
|
||||
printf(" --logo-short and --logo-long, which always sets the logo size as specified by the user, even if it is too big. After the\n");
|
||||
printf(" logo selection (either automatically or set by the user), cpufetch will check again if the output fits in the terminal.\n");
|
||||
printf(" If not, it will use a shorter name for the fields (the left part of the text). If, after all of this, the output still does\n");
|
||||
printf(" not fit, cpufetch will cut the text and will only print the text until there is no space left in each line\n");
|
||||
|
||||
printf("\nEXAMPLES: \n");
|
||||
printf(" Run cpufetch with Intel color scheme:\n");
|
||||
printf(" ./cpufetch --color intel\n");
|
||||
printf(" Run cpufetch with a custom color scheme:\n");
|
||||
printf(" ./cpufetch --color 239,90,45:210,200,200:100,200,45:0,200,200\n");
|
||||
printf(" ./cpufetch --color 239,90,45:210,200,200:0,0,0:100,200,45:0,200,200\n");
|
||||
|
||||
printf("\nBUGS: \n");
|
||||
printf(" Report bugs to https://github.com/Dr-Noob/cpufetch/issues\n");
|
||||
|
||||
printf("\nNOTE: \n");
|
||||
printf(" Peak performance information is NOT accurate. cpufetch computes peak performance using the max\n");
|
||||
printf(" frequency. However, to properly compute peak performance, you need to know the frequency of the\n");
|
||||
printf(" CPU running AVX code, which is not be fetched by cpufetch since it depends on each specific CPU.\n");
|
||||
printf(" For peak performance measurement see: https://github.com/Dr-Noob/peakperf\n");
|
||||
printf(" frequency of the CPU. However, to compute the peak performance, you need to know the frequency of the\n");
|
||||
printf(" CPU running AVX code. This value is not be fetched by cpufetch since it depends on each specific CPU.\n");
|
||||
printf(" To correctly measure peak performance, see: https://github.com/Dr-Noob/peakperf\n");
|
||||
}
|
||||
|
||||
void print_version() {
|
||||
|
Reference in New Issue
Block a user