File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ + bashly generate
2+ creating user files in src
3+ skipped src/initialize.sh (exists)
4+ skipped src/root_command.sh (exists)
5+ created ./upcase
6+ run ./upcase --help to test your bash script
7+ + ./upcase -h
8+ upcase - Sample application to demonstrate the use of repeatable arguments
9+
10+ Usage:
11+ upcase FILE...
12+ upcase --help | -h
13+ upcase --version | -v
14+
15+ Options:
16+ --help, -h
17+ Show this help
18+
19+ --version, -v
20+ Show version number
21+
22+ Arguments:
23+ FILE...
24+ One or more files to process
25+
26+ Examples:
27+ upcase README.md LICENSE
28+ upcase *.md
29+
30+ + ./upcase file1
31+
32+ files:
33+ path: file1:
34+ content: content of file1
35+ upcase: CONTENT OF FILE1
36+
37+ args:
38+ - ${args[file]} = "file1"
39+ + ./upcase file1 file2
40+
41+ files:
42+ path: file1:
43+ content: content of file1
44+ upcase: CONTENT OF FILE1
45+ path: file2:
46+ content: content of file2
47+ upcase: CONTENT OF FILE2
48+
49+ args:
50+ - ${args[file]} = "file1" "file2"
File renamed without changes.
You can’t perform that action at this time.
0 commit comments