-
-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathargfile-env-var
More file actions
30 lines (30 loc) · 1.22 KB
/
argfile-env-var
File metadata and controls
30 lines (30 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
creating user files in src
created src/root_command.sh
created ./download
run ./download --help to test your bash script
+ ./download somesource
# This file is located at 'src/root_command.sh'.
# It contains the implementation for the 'download' command.
# The code you write here will be wrapped by a function named 'root_command()'.
# Feel free to edit this file; your changes will persist when regenerating.
args:
- ${args[--force]} = 1
- ${args[--log]} = from-default.log
- ${args[source]} = somesource
+ DOWNLOAD_ARGFILE=off
+ ./download somesource
# This file is located at 'src/root_command.sh'.
# It contains the implementation for the 'download' command.
# The code you write here will be wrapped by a function named 'root_command()'.
# Feel free to edit this file; your changes will persist when regenerating.
args:
- ${args[source]} = somesource
+ DOWNLOAD_ARGFILE=.alt-download
+ ./download somesource
# This file is located at 'src/root_command.sh'.
# It contains the implementation for the 'download' command.
# The code you write here will be wrapped by a function named 'root_command()'.
# Feel free to edit this file; your changes will persist when regenerating.
args:
- ${args[--log]} = from-override.log
- ${args[source]} = somesource