Rename --show-time-today to --today

This commit is contained in:
Alan Hamlett 2019-05-07 17:49:07 -07:00
parent 23e0778392
commit 8529593453
5 changed files with 6 additions and 6 deletions

View file

@ -10,4 +10,4 @@ usage: wakatime [-h] [--entity FILE] [--key KEY] [--write] [--plugin PLUGIN]
[--include-only-with-project-file] [--extra-heartbeats]
[--log-file LOG_FILE] [--api-url API_URL] [--timeout TIMEOUT]
[--sync-offline-activity SYNC_OFFLINE_ACTIVITY]
[--show-time-today] [--config CONFIG] [--verbose] [--version]
[--today] [--config CONFIG] [--verbose] [--version]

View file

@ -76,7 +76,7 @@ optional arguments:
sent while online 5 offline heartbeats are synced. Can
be used without --entity to only sync offline activity
without generating new heartbeats.
--show-time-today Prints dashboard time for Today, then exits.
--today Prints dashboard time for Today, then exits.
--config CONFIG Defaults to ~/.wakatime.cfg.
--verbose Turns on debug messages in log file.
--version show program's version number and exit

View file

@ -329,7 +329,7 @@ class ArgumentsTestCase(TestCase):
self.patched['wakatime.packages.requests.adapters.HTTPAdapter.send'].return_value = SummaryResponse()
config = 'tests/samples/configs/good_config.cfg'
args = ['--config', config, '--show-time-today', '--verbose']
args = ['--config', config, '--today', '--verbose']
retval = execute(args)