Relative Content

Tag Archive for cli

Is it better practice to set default values for optional argparse arguments?

I mention python’s argparse as an example but this would apply to any CLI argument parser library for any language. Just generally speaking, at a high level, if there are a lot of optional arguments for my application, should these arguments’ values be set to at least something, even if its a falsy value?

Adding a CLI to a windows service

I have a windows service that I would like to extend and add a CLI to it similar to docker or elastic-agent so I have a question about what kind of approach I should use for the *.exe to communicate with the same *.exe running as a service?

Rich console UI

There are bunch of console programs and especially games using full redraw (not sure ho this correctly named) of console window.

OOP CLI menu structure organization?

This problem has kept me from pursuing a project I’m working on because it influences the entire structure of the application. This question has been briefly touched on here, but I feel that it wasn’t seen by many people and therefore wasn’t very well answered.

OOP CLI menu structure organization?

This problem has kept me from pursuing a project I’m working on because it influences the entire structure of the application. This question has been briefly touched on here, but I feel that it wasn’t seen by many people and therefore wasn’t very well answered.

Event loop for console input

I have a server application that runs in an infinite loop, only reacting to SIGINT. It is put inside a screen process. If I have to make any changes (reload configuration, add new plugins, etc) I simply restart the whole process so the changes are picked up during initialization.