#! /bin/bash set -e set -o pipefail shamir_secret_sharing=false number_of_shares=5 share_threshold=3 positional=() while [ $# -gt 0 ]; do argument="$1" case $argument in -h|--help) printf "%s\n" \ "Usage: qr-backup.sh [options]" \ "" \ "Options:" \ " --create-bip39-mnemonic create BIP39 mnemonic" \ " --validate-bip39-mnemonic validate if secret is valid BIP39 mnemonic" \ " --create-passphrase create passphrase" \ " --wordlist wordlist (defaults to large)" \ " --word-count word count (defaults to 7)" \ " --shamir-secret-sharing split secret using Shamir Secret Sharing" \ " --number-of-shares number of shares (defaults to 5)" \ " --share-threshold shares required to access secret (defaults to 3)" \ " --no-qr disable show SHA512 hash as QR code prompt" \ " --label