From fae628b5343b573afde5208fda4990292159397c Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Sat, 16 Mar 2019 10:52:32 -0700 Subject: [PATCH] tz -> tww --- tz.py => tww.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename tz.py => tww.py (97%) diff --git a/tz.py b/tww.py similarity index 97% rename from tz.py rename to tww.py index e302455..80c2dd4 100644 --- a/tz.py +++ b/tww.py @@ -1,5 +1,8 @@ +#!/usr/bin/env python """ +Find time now, in the past or future in any timezone or location. """ + import os import argparse import logging @@ -19,7 +22,7 @@ logger = logging.getLogger() def parse_args(): parser = argparse.ArgumentParser() - parser.add_argument('query', nargs='*', help=" to ") + parser.add_argument('query', nargs='*', default="now", help=" to ") parser.add_argument('--format', dest='format', default=DEFAULT_FORMAT) parser.add_argument('--iso', dest='iso', action='store_true') parser.add_argument('--debug', dest='debug', action='store_true')