aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Benedikt Morbach <moben@exherbo.org> 2015-05-06 23:02:47 +0200
committerAvatar Benedikt Morbach <moben@exherbo.org> 2015-05-06 23:06:53 +0200
commitb553842986aa022b442a4fe6e62e11f9dee0b0c3 (patch)
tree1a6598ca45bf99eef0bce215ab42ba2bf221288b
parent5ed6a23569c2b00e51d952fc1f5511acee70b830 (diff)
downloadpaludis-b553842986aa022b442a4fe6e62e11f9dee0b0c3.tar.gz
paludis-b553842986aa022b442a4fe6e62e11f9dee0b0c3.tar.xz
add short option for --chroot-path
-rw-r--r--bash-completion/cave1
-rw-r--r--src/clients/cave/resolve_cmdline.cc2
-rw-r--r--zsh-completion/_cave1
3 files changed, 3 insertions, 1 deletions
diff --git a/bash-completion/cave b/bash-completion/cave
index a2bd336..a107b57 100644
--- a/bash-completion/cave
+++ b/bash-completion/cave
@@ -126,6 +126,7 @@ __cave_resolve_options="-h --help
-b --create-binaries
-B --no-binaries-for
-/ --install-to-root --no-install-to-root
+ -2 --chroot-path
--dump --no-dump
--dump-restarts --no-dump-restarts
-1 --preserve-world --no-preserve-world
diff --git a/src/clients/cave/resolve_cmdline.cc b/src/clients/cave/resolve_cmdline.cc
index b689515..8a924a9 100644
--- a/src/clients/cave/resolve_cmdline.cc
+++ b/src/clients/cave/resolve_cmdline.cc
@@ -295,7 +295,7 @@ ResolveCommandLineResolutionOptions::ResolveCommandLineResolutionOptions(args::A
"all"),
a_one_binary_per_slot(&g_destination_options, "one-binary-per-slot", '\0', "When building a binary package, "
"remove other versions in the same repository and slot (as would be done for non-binary packages).", true),
- a_chroot_path(&g_destination_options, "chroot-path", '\0', "When making a chroot, only consider destination "
+ a_chroot_path(&g_destination_options, "chroot-path", '2', "When making a chroot, only consider destination "
"repositories whose root is this value."),
// g_query_options(this, "Query Options", "Query the user interactively when making decisions. "
diff --git a/zsh-completion/_cave b/zsh-completion/_cave
index f8519ae..735dc4a 100644
--- a/zsh-completion/_cave
+++ b/zsh-completion/_cave
@@ -736,6 +736,7 @@ _cave_resolve_arguments=(
'(--make-dependencies -M)'{--make-dependencies,-M}'[Specify what to do with dependencies of targets]:When:((auto runtime r all a none n))' \
'*'{--via-binary,-b}'[When building a package matching the supplied spec, create a binary package and use that for the install]' \
'(--dependencies-to-slash -/)'{--dependencies-to-slash,-/}'[Specify what to do with dependencies for the / filesystem when not working on /]:When:((all a runtime r build b none n))' \
+ '*'{--chroot-path,-2}'[When making a chroot, only consider destination repositories whose root is this value]:Root:'
'--one-binary-per-slot[When building a binary package, remove other versions in the same repository and slot]' \
'--ignore-unable-decisions[Ignore any resolvent for which we were unable to make a decision. Specifying this will break your system]' \
'--ignore-unorderable-jobs[Ignore any job we were unable to order. Specifying this will break your system]' \