Skip to content

Should arguments that begin with ':' be reserved for hints? #348

@sruffell

Description

@sruffell

The following output surprised me:

$ src/timew track :yesterday foo
Note: 'foo' is a new tag.
Recorded foo
  Started 2020-07-23T00:00:00
  Ended           24T00:00:00
  Total              24:00:00
$ src/timew track :today bar
Note: ':today' is a new tag.
Note: 'bar' is a new tag.
Tracking :today bar
  Started 2020-07-24T14:43:52
  Current                  52
  Total               0:00:00

My question is should any command line argument that begins with a : be interpreted as a hint, and display an error that there is no hint with that name instead of treating it as a tag?

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionDiscussion on a topic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions