File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -15,22 +15,21 @@ usage()
15
15
cat >&2 << EOF
16
16
${app_name} : $@
17
17
${app_name} : Generate skeleton upgrade script.
18
- Usage: ${app_name} [--prev_hash <COMMITISH>] [--lang <LANG>]"
18
+ Usage: ${app_name} --lang <LANG> [--prev_hash <COMMITISH>]"
19
+
20
+ --lang <LANG>
21
+ Language to update the schema for.
19
22
20
23
--prev-hash <COMMITISH>
21
24
Hash/branch to use to get SHA1 for previous DB scheme.
22
25
Default: origin/main
23
26
24
- --lang <LANG>
25
- Language to update the schema for.
26
-
27
27
Must be run within the git repo needing an update.
28
28
EOF
29
29
exit " ${exit_code} "
30
30
}
31
31
32
32
prev_hash=" origin/main"
33
- lang=" cpp"
34
33
35
34
while [ $# -gt 0 ]; do
36
35
case " $1 " in
@@ -72,6 +71,10 @@ if [ $# -gt 0 ]; then
72
71
usage 2 " Unrecognised operand: $1 "
73
72
fi
74
73
74
+ if [ -z ${lang+x} ]; then
75
+ usage 2 " No language specified"
76
+ fi
77
+
75
78
top_level=" $( git rev-parse --show-superproject-working-tree) "
76
79
77
80
if [ " x${top_level} " = " x" ]; then
You can’t perform that action at this time.
0 commit comments