mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
nix-on-droid: add -I argument
This commit is contained in:
parent
9323f2f573
commit
d9fd49b6c4
1 changed files with 8 additions and 3 deletions
|
|
@ -25,10 +25,11 @@ function doHelp() {
|
|||
echo " -h|--help Print this help"
|
||||
echo " -n|--dry-run Do a dry run, only prints what actions would be taken"
|
||||
echo " -v|--verbose Verbose output"
|
||||
echo " -f|--file Path to config file"
|
||||
echo " -f|--file FILE Path to config file"
|
||||
echo
|
||||
echo "Options passed on to nix build"
|
||||
echo
|
||||
echo " -I|--include PATH"
|
||||
echo " --cores NUM"
|
||||
echo " --keep-failed"
|
||||
echo " --keep-going"
|
||||
|
|
@ -90,10 +91,10 @@ function doSwitchGeneration() {
|
|||
}
|
||||
|
||||
|
||||
COMMAND=
|
||||
COMMAND_ARGS=()
|
||||
PASSTHROUGH_OPTS=()
|
||||
COMMAND=
|
||||
CONFIG_FILE=
|
||||
PASSTHROUGH_OPTS=()
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
opt="$1"
|
||||
|
|
@ -110,6 +111,10 @@ while [[ $# -gt 0 ]]; do
|
|||
doHelp
|
||||
exit 0
|
||||
;;
|
||||
-I|--include)
|
||||
PASSTHROUGH_OPTS+=(-I "$1")
|
||||
shift
|
||||
;;
|
||||
-n|--dry-run)
|
||||
export DRY_RUN=1
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue