Skip to content

Commit

Permalink
The directory to watch and the filename is now required
Browse files Browse the repository at this point in the history
  • Loading branch information
0x9900 committed Feb 17, 2024
1 parent cacb00f commit 66d0c56
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions eqsl/sendcard.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

from watchfiles import Change, DefaultFilter, watch

DEFAULT_ADIF = 'MacLoggerDX_Export.adi'
DEFAULT_DIR = '/Users/fred/Downloads'
SHOW_CARD = False
KEEP_CARD = False

Expand Down Expand Up @@ -70,11 +68,11 @@ def main() -> None:
parser.add_argument("-s", "--show", action="store_true", default=False,
help="Show the card")
parser.add_argument("-k", "--keep", action="store_true", default=False,
help="Keep the card in the temporary directory")
parser.add_argument("-p", "--path", default=DEFAULT_DIR,
help="Path [default: %(default)s]")
parser.add_argument("-a", "--adif", default=DEFAULT_ADIF,
help="ADIF file to watch [default: %(default)s]")
help="Keep the cards after they have been sent (do not delete)")
parser.add_argument("-p", "--path", required=True,
help="Directory where the ADIF file will be stored")
parser.add_argument("-a", "--adif", required=True,
help="ADIF file name")
parser.add_argument("--version", action="version", version=f'eqsl.%(prog)s {__version__}')
opts = parser.parse_args()

Expand Down

0 comments on commit 66d0c56

Please sign in to comment.