mirror of
https://github.com/nix-community/home-manager
synced 2024-12-12 21:09:49 +01:00
home-manager: pass on --debug
option (#2049)
* man-home-manager: remove trailing whitespace
* home-manager: pass on `--debug` option
(cherry picked from commit 5eb199e937
)
This commit is contained in:
parent
ffd6c84c25
commit
8d64c164fc
4 changed files with 58 additions and 37 deletions
|
@ -131,6 +131,10 @@
|
||||||
<replaceable>number</replaceable>
|
<replaceable>number</replaceable>
|
||||||
</arg>
|
</arg>
|
||||||
|
|
||||||
|
<arg>
|
||||||
|
--debug
|
||||||
|
</arg>
|
||||||
|
|
||||||
<arg>
|
<arg>
|
||||||
--keep-failed
|
--keep-failed
|
||||||
</arg>
|
</arg>
|
||||||
|
@ -456,6 +460,18 @@
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<option>--debug</option>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Passed on to <citerefentry>
|
||||||
|
<refentrytitle>nix-build</refentrytitle>
|
||||||
|
<manvolnum>1</manvolnum> </citerefentry>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--keep-failed</option>
|
<option>--keep-failed</option>
|
||||||
|
|
|
@ -285,8 +285,8 @@ _home-manager_completions ()
|
||||||
#--------------------------#
|
#--------------------------#
|
||||||
|
|
||||||
local Options
|
local Options
|
||||||
Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" "--verbose" "--show-trace" \
|
Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" "--verbose" \
|
||||||
"-j" "--max-jobs" )
|
"--cores" "--debug" "--keep-failed" "--keep-going" "-j" "--max-jobs" "--no-substitute" "--show-trace" "--substitute")
|
||||||
|
|
||||||
# ^ « home-manager »'s options.
|
# ^ « home-manager »'s options.
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ _arguments \
|
||||||
'-I[search path]:PATH:_files -/' \
|
'-I[search path]:PATH:_files -/' \
|
||||||
'-b[backup files]:EXT:()' \
|
'-b[backup files]:EXT:()' \
|
||||||
'--cores[cores]:NUM:()' \
|
'--cores[cores]:NUM:()' \
|
||||||
|
'--debug[debug]' \
|
||||||
'--keep-failed[keep failed]' \
|
'--keep-failed[keep failed]' \
|
||||||
'--keep-going[keep going]' \
|
'--keep-going[keep going]' \
|
||||||
'(-h --help)'{--help,-h}'[help]' \
|
'(-h --help)'{--help,-h}'[help]' \
|
||||||
|
@ -42,11 +43,14 @@ case "$state" in
|
||||||
build|switch)
|
build|switch)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--cores[cores]:NUM:()' \
|
'--cores[cores]:NUM:()' \
|
||||||
|
'--debug[debug]' \
|
||||||
'--keep-failed[keep failed]' \
|
'--keep-failed[keep failed]' \
|
||||||
'--keep-going[keep going]' \
|
'--keep-going[keep going]' \
|
||||||
'--max-jobs[max jobs]:NUM:()' \
|
'--max-jobs[max jobs]:NUM:()' \
|
||||||
|
'--no-substitute[no substitute]' \
|
||||||
'--option[option]:NAME VALUE:()' \
|
'--option[option]:NAME VALUE:()' \
|
||||||
'--show-trace[show trace]'
|
'--show-trace[show trace]' \
|
||||||
|
'--substitute[substitute]'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -473,6 +473,7 @@ function doHelp() {
|
||||||
echo
|
echo
|
||||||
echo " --arg(str) NAME VALUE Override inputs passed to home-manager.nix"
|
echo " --arg(str) NAME VALUE Override inputs passed to home-manager.nix"
|
||||||
echo " --cores NUM"
|
echo " --cores NUM"
|
||||||
|
echo " --debug"
|
||||||
echo " --keep-failed"
|
echo " --keep-failed"
|
||||||
echo " --keep-going"
|
echo " --keep-going"
|
||||||
echo " -j, --max-jobs NUM"
|
echo " -j, --max-jobs NUM"
|
||||||
|
@ -572,7 +573,7 @@ while [[ $# -gt 0 ]]; do
|
||||||
PASSTHROUGH_OPTS+=("$opt" "$1")
|
PASSTHROUGH_OPTS+=("$opt" "$1")
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--keep-failed|--keep-going|--show-trace\
|
--debug|--keep-failed|--keep-going|--show-trace\
|
||||||
|--substitute|--no-substitute)
|
|--substitute|--no-substitute)
|
||||||
PASSTHROUGH_OPTS+=("$opt")
|
PASSTHROUGH_OPTS+=("$opt")
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue