Skip to content

Commit

Permalink
Tweak to basic syntax check.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed Oct 4, 2023
1 parent 95133ea commit 8361bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lib/bashy-core/arg-processor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ function _argproc_janky-args {
fi

if [[ ${a} =~ ^--. ]]; then
if ! [[ ${a} =~ ^--([a-z]+)(=.*)?$ ]]; then
if ! [[ ${a} =~ ^--([a-z][-a-z]+)(=.*)?$ ]]; then
error-msg --file-line=2 "Invalid option syntax: ${a}"
_argproc_declarationError=1
return 1
Expand Down

0 comments on commit 8361bbf

Please sign in to comment.