From 8d64c164fcfe164d5c9c276025ecf5bb79b121ad Mon Sep 17 00:00:00 2001 From: bb010g Date: Sat, 5 Jun 2021 15:11:06 -0700 Subject: [PATCH] home-manager: pass on `--debug` option (#2049) * man-home-manager: remove trailing whitespace * home-manager: pass on `--debug` option (cherry picked from commit 5eb199e9371b59e97186d83dc4a44477a7c79e43) --- doc/man-home-manager.xml | 82 +++++++++++++++++++++--------------- home-manager/completion.bash | 4 +- home-manager/completion.zsh | 6 ++- home-manager/home-manager | 3 +- 4 files changed, 58 insertions(+), 37 deletions(-) diff --git a/doc/man-home-manager.xml b/doc/man-home-manager.xml index ceb6a29f..e9db7044 100644 --- a/doc/man-home-manager.xml +++ b/doc/man-home-manager.xml @@ -12,47 +12,47 @@ - home-manager + home-manager build - + instantiate - + edit - + expire-generations timestamp - + generations - + help - + news - + packages - + remove-generations ID … - + switch - + uninstall @@ -61,63 +61,63 @@ -A attrPath - + -I path - + --flake flake-uri - + -b ext - + - + -f - + --file path - + - + -h - + --help - + - + -n - + --dry-run - + --option name value - + --cores number - + @@ -130,29 +130,33 @@ number - + + + --debug + + --keep-failed - + --keep-going - + --show-trace - + --(no-)substitute - + - + -v - + --verbose @@ -456,6 +460,18 @@ + + + + + + + Passed on to + nix-build + 1 . + + + diff --git a/home-manager/completion.bash b/home-manager/completion.bash index d5b48258..5b2f7234 100644 --- a/home-manager/completion.bash +++ b/home-manager/completion.bash @@ -285,8 +285,8 @@ _home-manager_completions () #--------------------------# local Options - Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" "--verbose" "--show-trace" \ - "-j" "--max-jobs" ) + Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" "--verbose" \ + "--cores" "--debug" "--keep-failed" "--keep-going" "-j" "--max-jobs" "--no-substitute" "--show-trace" "--substitute") # ^ « home-manager »'s options. diff --git a/home-manager/completion.zsh b/home-manager/completion.zsh index 5fc67f3b..6b33f24a 100644 --- a/home-manager/completion.zsh +++ b/home-manager/completion.zsh @@ -7,6 +7,7 @@ _arguments \ '-I[search path]:PATH:_files -/' \ '-b[backup files]:EXT:()' \ '--cores[cores]:NUM:()' \ + '--debug[debug]' \ '--keep-failed[keep failed]' \ '--keep-going[keep going]' \ '(-h --help)'{--help,-h}'[help]' \ @@ -42,11 +43,14 @@ case "$state" in build|switch) _arguments \ '--cores[cores]:NUM:()' \ + '--debug[debug]' \ '--keep-failed[keep failed]' \ '--keep-going[keep going]' \ '--max-jobs[max jobs]:NUM:()' \ + '--no-substitute[no substitute]' \ '--option[option]:NAME VALUE:()' \ - '--show-trace[show trace]' + '--show-trace[show trace]' \ + '--substitute[substitute]' ;; esac esac diff --git a/home-manager/home-manager b/home-manager/home-manager index 47ef2d69..f0537b5e 100644 --- a/home-manager/home-manager +++ b/home-manager/home-manager @@ -473,6 +473,7 @@ function doHelp() { echo echo " --arg(str) NAME VALUE Override inputs passed to home-manager.nix" echo " --cores NUM" + echo " --debug" echo " --keep-failed" echo " --keep-going" echo " -j, --max-jobs NUM" @@ -572,7 +573,7 @@ while [[ $# -gt 0 ]]; do PASSTHROUGH_OPTS+=("$opt" "$1") shift ;; - --keep-failed|--keep-going|--show-trace\ + --debug|--keep-failed|--keep-going|--show-trace\ |--substitute|--no-substitute) PASSTHROUGH_OPTS+=("$opt") ;;