We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b52ed8 commit f32286bCopy full SHA for f32286b
1 file changed
scripts/patch-oclif.ts
@@ -51,7 +51,8 @@ if (idx === -1) {
51
// Patch uses \\$ so that it survives the JS string — in the generated shell script each \\$ becomes \$
52
// which Bash then interprets as a literal $ (not a template substitution in the JS template literal).
53
const PATCH = ` # CODIFY_PATCH_START — do not remove this marker
54
- _first_arg="\${1:-}"
+ _first_arg=""
55
+ if [ "\\$#" -gt 0 ]; then _first_arg="\\$1"; fi
56
if [ "\\$_first_arg" = "--help" ] || [ "\\$_first_arg" = "-h" ]; then
57
_help_file="\\$DIR/../dist/static/help.txt"
58
if [ -f "\\$_help_file" ]; then cat "\\$_help_file"; exit 0; fi
0 commit comments