Browse Source

Merge JoinMarket-Org/joinmarket-clientserver#1207: Print which option is invalid in shell scripts

308f739467 Print which option is invalid in shell scripts (Kristaps Kaupe)

Pull request description:

  To save time when you have a typo in single of them in a long list.

Top commit has no ACKs.

Tree-SHA512: 56d34b11aede9e3cd9cd5e2f79b1c43fa79dc53c9d0f650148ee4e0c0ad400e70b9847254d40bba7bf08e5da1fe955c9eae769746f2e144968d6cea8837785cd
master
Kristaps Kaupe 4 years ago
parent
commit
a0991fad0b
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 3
      install.sh
  2. 3
      test/run_tests.sh

3
install.sh

@ -393,6 +393,9 @@ parse_flags ()
break
;;
*)
if [[ $1 != '-h' ]] && [[ $1 != '--help' ]]; then
echo "Invalid option $1"
fi
echo "
Usage: "${0}" [options]

3
test/run_tests.sh

@ -122,6 +122,9 @@ parse_flags ()
break
;;
*)
if [[ $1 != '-h' ]] && [[ $1 != '--help' ]]; then
echo "Invalid option $1"
fi
echo "
Usage: "${0}" [options]

Loading…
Cancel
Save