A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.
Questions tagged [cli]
39 questions
218
votes
5 answers
What are good habits for designing command line arguments?
While developing the application I started to wonder - How should I design command line arguments?
A lot of programs are using formula like this -argument value or /argument value. Solution which came to my mind was argument:value. I thought it is…
Filip Hazubski
- 2,053
38
votes
7 answers
Is the development of CLI apps considered "backward"?
I am a DBA fledgling with a lot of experience in programming.
I have developed several CLI, non interactive apps that solve some daily repetitive tasks or eliminate the human error from more complex albeit not so daily tasks. These tools are now…
Tulains Córdova
- 39,570
- 13
- 100
- 156
17
votes
9 answers
How does a CLI-oriented programmer's workflow differ from a GUI-oriented one?
I've heard a lot about the advantages of doing less programming work in GUI apps and using more command-line tools (especially with regard to getting things done more efficiently). However, since I don't understand how my workflow would be…
user541686
- 8,178
14
votes
2 answers
Is it crazy to develop a TUI today?
I'm starting to develop a new program. It's basically a database interface, run a few queries, show the data in a nice way and be able to easy input new data (like this website).
Thinking about which programs I use daily I realise that only my…
iveqy
- 468
13
votes
7 answers
How are applications where any command can be run CLI, but also has a UI element, structured?
Sorry if the title sounds too broad, I'll try to clarify. I am trying to understand the structure of applications that have a GUI, but any action can also be run from a CLI (either integrated in the GUI, like AutoCAD (reference picture), or simply…
Justin8051
- 333
11
votes
4 answers
Practical size limits of a Hashtable and Dictionary in C#
What are the practical limits for the number of items a C# 4 Dictionary or Hashtable can contain and the total number of bytes these structures can reasonable contain?
I'll be working with large numbers of objects and want to know when these…
JoeGeeky
- 811
7
votes
1 answer
How can a computer render a CLI/console along with a GUI?
I'm confused when looking into graphics - specifically with operating systems.
I mean, how can a computer render a CLI/console along with a GUI?
GUI's are completely different from text. And how can we have GUI windows that display text interfaces,…
Nathaniel Bennett
- 315
- 2
- 9
5
votes
2 answers
Multi-level validation in C#
I have a Console project reads inputs from CSV file and tries to save them to database.
For that, I created a class Person that maps a CSV row.
The CSV file has two columns Name and Age. Person class is like.
class Person
{
public string Name;
…
Mhd
- 195
- 1
- 7
4
votes
2 answers
Grouping non-boolean command-line options
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 options together. Such that the above is synonymous…
user290257
3
votes
2 answers
How should I manage user session in CLI application?
I'm developing a CLI based application. It has a "login" command to perform authentication:
$ myapp login
$ Type username: hector
$ Type password: *****
$ Login success!
Internally, myapp login makes a request against a HTTP API and a…
Héctor Valls
- 747
3
votes
2 answers
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…
Jared
- 493
3
votes
2 answers
SVN command line client: checkout refused when LDAP password changed “svn: OPTIONS of” (repo) “authorization failed” (but works in TortoiseSVN)
When using the command line/terminal svn client, a colleague is getting "svn: OPTIONS of " [repo] "...authorization failed" error message when they attempt to checkout the repo to be their local working copy.
They used to be able to do this but have…
therobyouknow
- 933
2
votes
2 answers
Is there a canonical way to format 'usage' output for a cli script?
I have a python script that is supposed to be used as a small cli program.
This is google's recommendations on how to document cli syntax. I was wondering, are there similar recommendations, or specifications, perhaps from GNU?
Yirmi
- 131
2
votes
2 answers
Dynamic loading of objects defined during development for a running system
So I have a design/architectural question. I want to develop a pattern in a programming language that is able to allow a app command-line shell to send commands to a running application to create objects that a developer maybe working on while the…
LeanMan
- 179
2
votes
1 answer
Parsing complex object-like parameters via CLI arguments
Say we have an API that accepts a list of objects. Something like:
{
"family": "Does",
"contact_details": [
{
"name": "John",
"email": "john@example.com"
},
{
"name": "Jane",
…
stephenfin
- 171