1#!/bin/bash
2# Copyright 2007-2021 Mitchell. See LICENSE.
3
4if [[ "$1" == "-h" || "$1" == "--help" ]]; then
5  echo "ta - shell script to launch Textadept.app"
6  echo "Usage:"
7  echo "ta [filenames]         open the given filenames in Textadept"
8  echo "ta [args] [filenames]  open the given filenames in a new instance of"
9  echo "                       Textadept with the given arguments"
10elif [ "${1:0:1}" == "-" ]; then
11  open -n -a Textadept.app --args "$@"
12else
13  open -a Textadept.app "$@"
14fi
15