Code Monkey home page Code Monkey logo

Comments (6)

alensiljak avatar alensiljak commented on August 19, 2024 1

It would be great if the option could be written into the config and stored.

from utt.

ErykPiasecki07 avatar ErykPiasecki07 commented on August 19, 2024 1

I missed that parameter too! Since every book abut UX will tell you: "It's never end-user's fault", maybe there should be something done in regard to exposing that option a bit more? --data and DATA_FILENAME are not very suggestive at first and on every computer there's a lot of data, so I suppose our brains can intuitively skip that phrase. Maybe --logpath or something like this would work?

Or if @larose really finds it a useful feature that more people should know about, maybe make it work a bit like vim?
If you do utt hello it defaults to a path it always does but if you do utt hello path/to/log.txt, it automatically creates log in the desired path?

from utt.

larose avatar larose commented on August 19, 2024 1

Hi @mistery and @ErykPiasecki07!

It would be great if the option could be written into the config and stored.

Yes, this can be an option. You are welcome to contribute this change, but don't forget to add tests.

I missed that parameter too! Since every book abut UX will tell you: "It's never end-user's fault", maybe there should be something done in regard to exposing that option a bit more? --data and DATA_FILENAME are not very suggestive at first and on every computer there's a lot of data, so I suppose our brains can intuitively skip that phrase. Maybe --logpath or something like this would work?

I agree with you that --data is probably not the best name. But log usually means the place where we store events that happen during the execution of a program for debugging and troubleshooting. So I think --logpath would also be confusing. Maybe the solution is to simply document what --data means when running utt --help (which has currently no documentation):

$ utt --help
usage: utt [-h] [--data DATA_FILENAME] [--now NOW] [--timezone TIMEZONE] [--version] {add,config,edit,hello,report,stretch} ...

Ultimate Time Tracker (utt) is a simple command-line time tracking application written in Python.

positional arguments:
  {add,config,edit,hello,report,stretch}

optional arguments:
  -h, --help            show this help message and exit
  --data DATA_FILENAME
  --now NOW
  --timezone TIMEZONE
  --version             show program's version number and exit

Or if @larose really finds it a useful feature that more people should know about, maybe make it work a bit like vim? If you do utt hello it defaults to a path it always does but if you do utt hello path/to/log.txt, it automatically creates log in the desired path?

I'm not sure why we would need this when we can already do it with utt --data path/to/log.txt hello.

from utt.

alensiljak avatar alensiljak commented on August 19, 2024

image

OK, I notice the parameter in the command-line output and the help.
I must've been blind.

from utt.

ErykPiasecki07 avatar ErykPiasecki07 commented on August 19, 2024

Yeah, sometimes the simplest solutions are the best ones, so documenting it is absolutely the way to go. Thanks for your opinion on this matter!

from utt.

larose avatar larose commented on August 19, 2024

I'm closing this, but anyone is welcome to submit a PR to update the documentation.

from utt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.