Skip to main content

Questions tagged [command-line]

Command-line interface or command-line interpreter, a means of interacting with a computer by means of textual commands and short scripts.

Filter by
Sorted by
Tagged with
5 votes
3 answers
533 views

I am working on an executable program - an application or utility. At some point, I want to introduce a new option (to be considered at run-time rather than build-time); the option may be boolean, ...
einpoklum's user avatar
  • 2,808
-1 votes
1 answer
248 views

When writing a program that uses a working directory, e.g., PostgreSQL data directory or download target for wget, is there an advantage of having a CLI argument (or an environment variable) for such ...
Glutexo's user avatar
  • 147
4 votes
3 answers
643 views

I was working on a small CLI tool to convert between time units and seconds. Someone filed an issue about how the code was treating a year as 365.25 days while the Gregorian year is supposed to be 365....
An Ant's user avatar
  • 149
0 votes
2 answers
1k views

I am working on a CLI chess game that only involves 2 human players, I decided to make it follow the MVC architecture to ensure separation of concern and to make the possibility of a GUI/web ...
Yoh's user avatar
  • 51
3 votes
1 answer
1k views

To improve my command lines scripts, I want to add some optional console output, mainly for logging purposes. In my PowerShell modules, I use Write-Verbose for this (but it should be clear this isn't ...
Alex_P's user avatar
  • 171
-1 votes
1 answer
1k views

As we all know /usr/local/sbin, /usr/local/bin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games and /snap/bin are directories that Linux commands ( Except ones that built-in to shell and custom ...
maDeveloper's user avatar
2 votes
1 answer
566 views

I am writing a command line tool in C++ that takes several arguments, some of them file names but also option parameters. Is there a standard way to parse and implement these options? A simple way ...
Hirek's user avatar
  • 139
-5 votes
2 answers
790 views

Good day everyone. I am planning to build a terminal, which will support common commands like ls, cd, cat, etc. But I am confused on how I should structure my codebase so that if in future, I decide ...
vighnesh153's user avatar
2 votes
2 answers
186 views

I'm writing a GUI application which needs the facility for users to interact with the system and execute tasks via a sort of command line interface. The user will type commands in a text box, with ...
19172281's user avatar
  • 133
1 vote
1 answer
132 views

I have made an application that deals with collections of images. Currently it has a REST api to add/remove images, create/clear/delete collections and a worker that can automatically fetch images ...
alexk745's user avatar
0 votes
2 answers
590 views

I am writing a gui that is supposed to replace a fairly large shellscript in order to make the usage easier for not-so-technical people. The script calls a certain program (saga_cmd) multiple times ...
Turtle10000's user avatar
1 vote
2 answers
124 views

I have a python CLI tool that my department uses to process some excel file aided by a yaml. I tried to diagram a basic work flow here: Step 1: User downloads a xlsx, puts it in a file, runs tool --...
Tony's user avatar
  • 169
4 votes
2 answers
183 views

This is just a quick question about standard CLI-parsing design. Say we have: foo -abc for most CLI-parsers, a single - dash (as opposed to a double dash --) means you can group single letter ...
user avatar
3 votes
5 answers
1k views

Consider a large program with many different parts that have a single command line interface, as is the case with most applications. How best do I handle passing various command line parameters, that ...
forumulator's user avatar
11 votes
6 answers
10k views

Consider the following command-line program manage-id. It does these things: manage-id list (list all usernames and user-ids) manage-id show <username> (shows ...
rlandster's user avatar
  • 1,019
16 votes
3 answers
2k views

Developers create scripts to help in their work. For example, to run Maven with certain parameters, to kill unneeded background tasks that crop up in development, or to connect to a certain server. ...
Joshua Fox's user avatar
  • 1,110
0 votes
1 answer
105 views

If I've got a script that uses a config file (or defaults to a generic config file) that calls another module which needs the config file passed to it as a parameter should I always File 1 (the ...
Peter Turner's user avatar
  • 6,985
-3 votes
1 answer
1k views

I want to write my own command line library from scratch. What algorithm should I use in order to parse gnu style args like in getopt for example ? I mean what's the best way other than tokenizing and ...
hoenir's user avatar
  • 17
1 vote
1 answer
2k views

I just learned about the MVC architecture. I was going back and working on a command line file transfer application I wrote, and I was curious, to what degree should command line interfaces follow the ...
namarino41's user avatar
-4 votes
4 answers
2k views

For small command line applications I can get away with simple command line input. ./test input.png output.png But for larger applications that requires a lot of input, simply using command line ...
user3667089's user avatar
-2 votes
1 answer
478 views

Basically I am calling a Server and expect a JSON response. The complication is when I need to pass the parameter which is in the form of JSON. The initial outcome of my thought process was to have a ...
DevMac's user avatar
  • 7
6 votes
1 answer
681 views

Often, command line parameters are documented using a vaguely EBNF-ish notation such as the following: The output of dir /? on Windows: DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] ...
Jason C's user avatar
  • 465
3 votes
3 answers
318 views

The problem: 50 different commands which are typed into a command line for a program, lets say for telling a robot what to do. Some of the commands have user determined values such as travel north 5 (...
WP0987's user avatar
  • 591
0 votes
1 answer
89 views

I'm beginning an open-source project for logging work hours. The intention is to build something similar to Git, where instead of pushing code you're pushing information about work hours and progress. ...
Eric Dubé's user avatar
1 vote
2 answers
417 views

I wrote a command-line utility and I want to develop a GUI for it. I saw that almost every tool on linux comes command-line, and it eventually has a GUI which interacts with the command line utility ...
BackSlash's user avatar
  • 211
-3 votes
1 answer
135 views

I am currently studying R. While studying that I came across a command set.seed(any number) . After googling also I didn't understood much except that it has something to do with Random number ...
Dark_Knight's user avatar
3 votes
2 answers
185 views

Are there terms that are used to describe what kind of command line program you are programming based on how the program is designed to interact with the user? For example, I can write a program that ...
Ryan Jarvis's user avatar
1 vote
1 answer
604 views

I am working on a large command line tool, written for Python 2.6+ and supported for Windows, OS X and Linux. The target users are developers but it is also being auto-invoked by CI-systems etc. In ...
Betamos's user avatar
  • 111
-5 votes
2 answers
521 views

I've begun implementing a support library for curses in Python. Along the way, I became curious why the project was called "curses" to begin with. According to one NCURSES documentation, the name is ...
Chris Redford's user avatar
-1 votes
1 answer
279 views

I'm writing a Java application, I need to create a URI Scheme. I've seen a library creating a URI Scheme using the "regedit" command on Windows. Is it safe to execute "regedit" for this task? Is ...
user3372036's user avatar
3 votes
2 answers
10k views

In Java main methods often do little more than parsing the command line arguments and initializing an object that then takes over, for example: public class FooServer { // ... public static ...
user3998276's user avatar
4 votes
2 answers
165 views

I'm developing a command-line tool that has many user options. Some of the options are lists of values. I'd like the program to be able to parse these listed options directly from the command line, ...
Daniel's user avatar
  • 239
0 votes
2 answers
436 views

Is it true to say (on Windows and Unix\Linux\OS X) that renaming a file or directory is just an alias for moving? e.g. Are there any side effects to either which are not present on the other? Does '...
BanksySan's user avatar
  • 724
0 votes
1 answer
222 views

At home I use Linux and have for more than a decade. At work we use Windows and so I find PowerShell more familiar. I am a Linux/Unix fanboy at heart, but I've had greater success grokking the ...
M. Lanza's user avatar
  • 1,738
1 vote
1 answer
108 views

On OS X you can use cmd+left/right to jump to the beginning/end of the line, or option+left/right to jump word by word. In just about every application. But not in the Terminal. Nor iTerm. You have ...
callum's user avatar
  • 10.5k
5 votes
2 answers
2k views

The closed source commercial software (CSCS), will just make system(3) calls to GPL applications. The user machine will run CSCS and it will call these GPL applications, in realtime, in the very same ...
Aquarius Power's user avatar
8 votes
4 answers
1k views

I want to sell a closed-application that depends upon a certain command line tool. Am I allowed to distribute my software including this command line tool? For example, as a separate binary ...
Nick Russler's user avatar
-1 votes
1 answer
157 views

I was wondering if there is a program in the common unix toolset such as grep that instead of filtering the lines that contain a string, simply outputs the same input but highlighting or coloring the ...
ordago's user avatar
  • 111
3 votes
2 answers
4k views

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 ...
Jared's user avatar
  • 493
0 votes
3 answers
264 views

Lately I've discovered that the latex and pdftex (with some other one) binaries in Ubuntu are the same: lrwxrwxrwx 1 root root 6 лип 29 18:03 latex -> pdftex* lrwxrwxrwx 1 root root ...
m0nhawk's user avatar
  • 1,488
4 votes
2 answers
203 views

I have a Java web application that makes use of certain libraries for example: Ghost Script for converting PDFs to TIFFs and Tesseract for OCR. There are java wrappers for both of these: Ghost4J and ...
Anthony's user avatar
  • 141
1 vote
1 answer
855 views

I'd like to add a couple of command-line arguments to my Django's ./manage.py dbshell command, and I can't figure out how. In specific I'd like to add -A to prevent MySQL from scanning every table ...
Mikhail's user avatar
  • 367
0 votes
1 answer
124 views

These options which obscure me are like ps aux, route -ee, gcc -fPIC xxx, find . -name xxx and so on. The examples above aren't comprehensive. I.e., I don't think that the argument handle ...
longdeqidao's user avatar
1 vote
1 answer
177 views

In many languages there are libraries, either built into the language itself or built separately outside of the language, which allow information to be taken from the operating system at some level. ...
Sam's user avatar
  • 113
-1 votes
2 answers
181 views

I saw many RoR developers use command line to interact with interfaces and to deploy their web applications. Is that necessary step to earn for asp.net developer?
user4062's user avatar
  • 101
2 votes
0 answers
132 views

I'm trying to build a Firefox add-on which lets you create executable files which can be associated with a default program or added to the "Open With" list and possess its own icon. I was hoping to ...
Brett Zamir's user avatar
1 vote
1 answer
412 views

Most code samples I see that demonstrate shell code preface each command with $. Having a prefix makes sense, but I'm confused as to why $ is used in particular. Some other symbol, like !, that can be ...
Chris Keele's user avatar
14 votes
3 answers
695 views

Currently I have a command-line application in C called btcwatch. It has a -C option that it can receive as an argument that compares the current price of Bitcoin with a price that was stored ...
Marco Scannadinari's user avatar
1 vote
2 answers
213 views

(On Windows 7 64 bit)... I am looking for a program, something similar to the default Windows Terminal, what I need it to do is: Load text from a given URL, split the code in two variables and then ...
adrianTNT's user avatar
  • 111
0 votes
1 answer
8k views

I am new to java. Here I am trying to create java package. And try to compile it from another directory . But there is an error like bash: /home/gaurav/Desktop/package2/B.java: Permission denied Here ...
twister_void's user avatar