Coder Social home page Coder Social logo

Comments (6)

thewhisperinyourears avatar thewhisperinyourears commented on July 30, 2024

I think it should better dont exit at all but display error and ask user for retry

from arrispwgen.

borfast avatar borfast commented on July 30, 2024

It's also a possibility, yes. I'm not sure if it's worth the extra effort, though. The difference is simply that if the program exits, the user has have to type "arrispwgen" again (besides the two dates, of course).

from arrispwgen.

thewhisperinyourears avatar thewhisperinyourears commented on July 30, 2024

from arrispwgen.

borfast avatar borfast commented on July 30, 2024

The terminal will only exit if you launch the program by double-clicking the script directly, which you normally will not do because it is installed in a "hard to reach" location and because you need to pass some arguments to it. Also, if the terminal exits when the program exits (making it implicit that you launched it via double-clicking), it means you didn't pass it any arguments, and thus the program will simply output the current day's password and exit, which means the terminal will also exit and you won't be able to see anything.

In summary: I may be missing something but I don't see a case where the program exiting after being used in a normal way would cause the terminal to exit.

Could you provide an example of such a situation?

from arrispwgen.

thewhisperinyourears avatar thewhisperinyourears commented on July 30, 2024

from arrispwgen.

borfast avatar borfast commented on July 30, 2024

Fixed.

from arrispwgen.

Related Issues (16)

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.