[F] Use relative path (~) instead of resolved path for help and docs (Closes #518)
Some checks failed
Shellcheck / check (push) Has been cancelled

This commit is contained in:
Azalea 2026-06-07 15:38:31 +00:00
parent 8840ac7c76
commit 82544a7553
2 changed files with 14 additions and 6 deletions

View File

@ -35,7 +35,7 @@ pub struct Options {
#[cfg(feature = "macchina")]
pub palette_glyph: Option<String>,
#[cfg(feature = "macchina")]
pub palette_type: Option<String>
pub palette_type: Option<String>,
}
pub fn options() -> OptionParser<Options> {
@ -55,7 +55,7 @@ pub fn options() -> OptionParser<Options> {
.join("hyfetch.json"),
)
})
.debug_fallback();
.format_fallback(|_, f| f.write_str("~/.config/hyfetch.json"));
let preset = long("preset")
.short('p')
.help(&*format!(

View File

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
.TH VERSION: "1" "April 2026" "Version: 2.1.0" "User Commands"
.TH VERSION: "1" "June 2026" "Version: 2.1.0" "User Commands"
.SH NAME
Version: \- manual page for Version: 2.1.0
.SH SYNOPSIS
@ -7,7 +7,8 @@ Version: \- manual page for Version: 2.1.0
[\fI\,-c\/\fR] [\fI\,-C=CONFIG_FILE\/\fR] [\fI\,-p=PRESET\/\fR] [\fI\,-m=MODE\/\fR] [\fI\,-b=BACKEND\/\fR] [\fI\,--args=ARGS\/\fR] [\fI\,--c-scale=\/\fR
.SH DESCRIPTION
SCALE] [\-\-c\-set\-l=LIGHTNESS] [\-\-june] [\-\-debug] ([\-\-distro=DISTRO] | [\-\-test\-distro=DISTRO]) [
\fB\-\-ascii\-file\fR=\fI\,ASCII_FILE]\/\fR [\-\-print\-font\-logo] [\-\-auto\-detect\-light\-dark=BOOL]
\fB\-\-ascii\-file\fR=\fI\,ASCII_FILE]\/\fR [\-\-print\-font\-logo] [\-\-auto\-detect\-light\-dark=BOOL] [\-\-palette\-glyph=STR] [
\fB\-\-palette\-type=\fR<full,light,dark>]
.PP
hyfetch \- neofetch with flags <3
.SS "Available options:"
@ -17,13 +18,13 @@ Configure hyfetch
.TP
\fB\-C\fR, \fB\-\-config\-file\fR=\fI\,CONFIG_FILE\/\fR
Use another config file
[default: "/home/azalea/.config/hyfetch.json"]
[default: ~/.config/hyfetch.json]
.TP
\fB\-p\fR, \fB\-\-preset\fR=\fI\,PRESET\/\fR
Use preset or comma\-separated color list or comma\-separated hex colors
(e.g., "#ff0000,#00ff00,#0000ff"). Comma\-separated preset names will
pick one randomly.
PRESET={rainbow,transgender,nonbinary,xenogender,agender,queer,genderfluid,bisexual,pansexual,polysexual,omnisexual,omniromantic,gay\-men,lesbian,abrosexual,asexual,aromantic,fictosexual,aroace1,aroace2,aroace3,autosexual,intergender,greygender,akiosexual,bigender,demigender,demiboy,demigirl,transmasculine,transfeminine,genderfaun,demifaun,genderfae,demifae,neutrois,biromantic1,biromantic2,autoromantic,boyflux2,girlflux,genderflux,nullflux,hypergender,hyperboy,hypergirl,hyperandrogyne,hyperneutrois,finsexual,unlabeled1,unlabeled2,pangender,pangender.contrast,gendernonconforming1,gendernonconforming2,femboy,tomboy,gynesexual,androsexual,gendervoid,voidgirl,voidboy,nonhuman\-unity,plural,fraysexual,bear,butch,femme,leather,otter,twink,adipophilia,kenochoric,veldian,solian,lunian,polyam,sapphic,androgyne,interprogress,progress,intersex,old\-polyam,equal\-rights,drag,pronounfluid,pronounflux,exipronoun,neopronoun,neofluid,genderqueer,cisgender,baker,caninekin,libragender,librafeminine,libramasculine,libraandrogyne,libranonbinary,fluidflux1,fluidflux2,transbian,autism,cenelian,transneutral,enbian,beiyang,burger,throatlozenges,band,petergriffin,rubber,haruhi,random}
PRESET={rainbow,transgender,nonbinary,xenogender,agender,queer,genderfluid,bisexual,pansexual,polysexual,omnisexual,omniromantic,gay\-men,lesbian,abrosexual,asexual,aromantic,fictosexual,aroace1,aroace2,aroace3,demisexual,autosexual,intergender,greygender,akiosexual,bigender,demigender,demiboy,demigirl,transmasculine,transfeminine,genderfaun,demifaun,genderfae,demifae,neutrois,biromantic1,biromantic2,autoromantic,boyflux2,girlflux,genderflux,nullflux,hypergender,hyperboy,hypergirl,hyperandrogyne,hyperneutrois,finsexual,unlabeled1,unlabeled2,pangender,pangender.contrast,gendernonconforming1,gendernonconforming2,femboy,tomboy,gynesexual,androsexual,gendervoid,voidgirl,voidboy,nonhuman\-unity,plural,fraysexual,bear,butch,femme,leather,otter,twink,adipophilia,kenochoric,veldian,solian,lunian,polyam,sapphic,androgyne,interprogress,progress,intersex,old\-polyam,equal\-rights,drag,pronounfluid,pronounflux,exipronoun,neopronoun,neofluid,genderqueer,cisgender,baker,caninekin,libragender,librafeminine,libramasculine,libraandrogyne,libranonbinary,fluidflux1,fluidflux2,transbian,autism,cenelian,transneutral,enbian,paragender,paraboy,paragirl,paranonbinary,paragenderalt,paraboyalt,paragirlalt,paranonbinaryalt,cupiorose,cupioromantic,cupiosexual,beiyang,burger,throatlozenges,band,petergriffin,rubber,haruhi,queervillain,random}
.TP
\fB\-m\fR, \fB\-\-mode\fR=\fI\,MODE\/\fR
Color mode MODE={8bit,rgb}
@ -62,6 +63,13 @@ Print the Font Logo / Nerd Font icon of your distro and exit
Enables hyfetch to detect light/dark terminal background in
runtime
.TP
\fB\-\-palette\-glyph\fR=\fI\,STR\/\fR
Sets the glyph to be used for the macchina backend
.TP
\fB\-\-palette\-type=\fR<full,light,dark>
Sets the type of palette to be used for the macchina
backend
.TP
\fB\-h\fR, \fB\-\-help\fR
Prints help information
.TP