Rename --show-time-today to --today
This commit is contained in:
parent
23e0778392
commit
8529593453
5 changed files with 6 additions and 6 deletions
|
@ -201,7 +201,7 @@ def parse_arguments():
|
|||
'online 5 offline heartbeats are synced. Can ' +
|
||||
'be used without --entity to only sync offline ' +
|
||||
'activity without generating new heartbeats.')
|
||||
parser.add_argument('--show-time-today', dest='show_time_today',
|
||||
parser.add_argument('--today', dest='today',
|
||||
action='store_true',
|
||||
help='Prints dashboard time for Today, then exits.')
|
||||
parser.add_argument('--config', dest='config', action=StoreWithoutQuotes,
|
||||
|
@ -248,7 +248,7 @@ def parse_arguments():
|
|||
if not args.entity:
|
||||
if args.file:
|
||||
args.entity = args.file
|
||||
elif (not args.sync_offline_activity or args.sync_offline_activity == 'none') and not args.show_time_today:
|
||||
elif (not args.sync_offline_activity or args.sync_offline_activity == 'none') and not args.today:
|
||||
parser.error('argument --entity is required')
|
||||
|
||||
if not args.sync_offline_activity:
|
||||
|
|
|
@ -42,7 +42,7 @@ def execute(argv=None):
|
|||
|
||||
setup_logging(args, __version__)
|
||||
|
||||
if args.show_time_today:
|
||||
if args.today:
|
||||
text, retval = get_time_today(args)
|
||||
if text:
|
||||
print(text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue