Fix help message and command options for experimental features in __yay_rebuild function

This commit is contained in:
Chris Toph 2025-05-29 19:07:20 -04:00
parent cb0fc8ebb5
commit 8baaa38d55

View file

@ -4,7 +4,7 @@ function __yay_rebuild
if set -q _flag_help if set -q _flag_help
echo "Usage: yay rebuild [OPTIONS]" echo "Usage: yay rebuild [OPTIONS]"
echo " -h, --help Show this help message" echo " -h, --help Show this help message"
echo " -e, --experimental Enable experimental features (flakes and nix-commands)" echo " -e, --experimental Enable experimental features (flakes and nix-command)"
echo " -H, --host HOST Hostname to build for (default: current hostname)" echo " -H, --host HOST Hostname to build for (default: current hostname)"
echo " -p, --path PATH Path to the Nix configuration (overrides FLAKE)" echo " -p, --path PATH Path to the Nix configuration (overrides FLAKE)"
echo " -t, --trace Enable trace output" echo " -t, --trace Enable trace output"
@ -31,7 +31,7 @@ function __yay_rebuild
# Add experimental features if requested # Add experimental features if requested
if set -q _flag_experimental if set -q _flag_experimental
set cmd "$cmd --extra-experimental-features flakes --extra-experimental-features nix-commands" set cmd "$cmd --extra-experimental-features flakes --extra-experimental-features nix-command"
end end
# Run the command # Run the command