We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1789223 commit 4c71792Copy full SHA for 4c71792
1 file changed
http-cli
@@ -270,11 +270,6 @@ function set_verbose() {
270
fi
271
}
272
273
-# show usage if no arguments supplied
274
-if ((!$#)); then
275
- die "$(usage)"
276
-fi
277
-
278
# pre parse args
279
function pre_parse_args() {
280
local arg
@@ -417,6 +412,9 @@ function parse_args() {
417
412
418
413
# main
419
414
function main() {
415
+ if ((!$#)); then
416
+ die "$(usage)"
+ fi
420
pre_parse_args "$@"
421
parse_args "$@"
422
if [[ -z "$FULL_URL" ]]; then
0 commit comments