command-line-interface

How to handle a ctrl-break signal in a command line interface

Before I begin, I want to clarify that this is not a command-line tool, but an application that accepts commands through it's own command-line interface. Edit: I must apologize about my explanation from before, apparently I didn't do a very good job at explaining it. One more time... I am building a command-line interface application t...

Java command-line launchers

I am working on a .jar file library to implement a bunch of helper classes to interface a PC to a piece of external hardware. I'll also add some simple applications, either command-line or GUI, to handle common tasks using the library. My question is, is there a recommended way to simplify the command-line instantiation of a JVM in a ce...

Renaming the trash command of trash-cli?

Hi, I'm the developer of the trash-cli project. The trash-cli project is a opensource implementation of the FreeDesktop.org Trash Specification that provides a command line interface to manage the trashcan. Ideally trash-cli provides these commands: trash (trashes files and directories) trash-empty (empty the trash...

How to cartoon-ify an image programmatically?

Maybe you have noticed, but cartoon-ifying your photos is the latest rage on the internet. My boss now wants our product, which works with photos and videos of people, to cartoonify them. So I need an algorithm to do it manually (we use c++/Qt for our product, which has image manipulation classes) or perhaps some CLI program that will do...

How to define the help of the CLI program in the __doc__ ?

Hello guys, I would like to do something like this : def main(): """ Display Information about a Google Calendar -u --user login Google Login -p --pass password Google Password -d --debug Set DEBUG = True -h --help Display this help """ print(__doc__) if __name__ == "__main...

Is there a Python equivalent for the Perl module Term::VT102?

In Perl there is a very handy module, Term::VT102, which allows you to create a screen in memory. This is very handy for scraping purposes since you can keep track of all the changes to portions of the screen and then export the screen as plain-text for processing. Is there an equivalent module in Python? Followup Question: There are mo...

How do I communicate with an unrelated process using its command line interface?

I'm trying to write a C++ program in Linux that communicates with a chess engine via its command line interface. Chess engines have standard protocols like UCI so, if I could write this, I could use different chess engines interchangeably. My C++ program should start the chess engine, send it a command, get the output, send it a comma...

Add dependency to existing pom.xml via shell

Is there a way to add dependencies to an existing pom.xml via shell script? Something like: mvn dependency:add -DgroupID=com.acme -DartifactId=project [Update] Clarified that I want to add to an existing pom ...

Interactive GUI-like command line merging tool (like BeyondCompare or WinMerge) for Linux

May be something that uses reverse-video to show the differences. ...

Considerations when creating a command line interface

There are lots of GUI best practices. I am looking for best practices when developing a command line program. For example, if I were creating a backup program what is best? Consideration 1, invocation: program.exe backup program.exe /backup program.exe -backup program.exe --backup Consideration 2, parameters: program.exe backup ...

how to make a Command Line Interface from a given data model used for GUI

HI, guys. I am developing a GUI to configure and call several external programs with Python and I use wxPython for the GUI toolkits. Basically, instead of typing commands and parameters in each shell for each application (one application via one shell), the GUI is visualizing these parameters and call them as subprocesses. I have built t...

how to make a Command Line Interface or Interpreter in python

Hi, guys. I have seen some CLI questions here, but I still want to ask this question for more detailed answers. I have already developed class1.py, class2.py, etc. with functions implemented inside each class. e.g. Operator.py has add, minus,time, devide functions. how can I build a command line interface for these classes? also for ...

Is it possible to get first opaque pixel in column using ImageMagick command line?

If I have png image with object on transparent background, is it possible to get number of transparent pixels before non transparent one in specified column starting from image bottom using ImageMagick command line or I can do this only using API? ...