From 82544a7553bbc4716fc375f3d446fc838b29e4dd Mon Sep 17 00:00:00 2001 From: Azalea Date: Sun, 7 Jun 2026 15:38:31 +0000 Subject: [PATCH] [F] Use relative path (~) instead of resolved path for help and docs (Closes #518) --- crates/hyfetch/src/cli_options.rs | 4 ++-- docs/hyfetch.1 | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/crates/hyfetch/src/cli_options.rs b/crates/hyfetch/src/cli_options.rs index bf250b7d..572d630e 100644 --- a/crates/hyfetch/src/cli_options.rs +++ b/crates/hyfetch/src/cli_options.rs @@ -35,7 +35,7 @@ pub struct Options { #[cfg(feature = "macchina")] pub palette_glyph: Option, #[cfg(feature = "macchina")] - pub palette_type: Option + pub palette_type: Option, } pub fn options() -> OptionParser { @@ -55,7 +55,7 @@ pub fn options() -> OptionParser { .join("hyfetch.json"), ) }) - .debug_fallback(); + .format_fallback(|_, f| f.write_str("~/.config/hyfetch.json")); let preset = long("preset") .short('p') .help(&*format!( diff --git a/docs/hyfetch.1 b/docs/hyfetch.1 index 2505d55e..7ea676b4 100644 --- a/docs/hyfetch.1 +++ b/docs/hyfetch.1 @@ -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] .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 +Sets the type of palette to be used for the macchina +backend +.TP \fB\-h\fR, \fB\-\-help\fR Prints help information .TP