Questions tagged [cli]

A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

35 questions
214
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,013
  • 3
  • 11
  • 11
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,201
  • 12
  • 97
  • 154
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,074
  • 8
  • 38
  • 49
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
  • 1
  • 5
  • 10
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
  • 4
  • 10
  • 23
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,…
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

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
  • 483
  • 1
  • 5
  • 11
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
  • 923
  • 7
  • 16
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
  • 6
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…
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
  • 4
2
votes
1 answer

Put functionality in same executable with command-line flag, or put it in a separate executable?

Background: I am working on a service where the domain logic exists as a library, and then the actual executable is built on a web framework as a wrapper around the domain logic library. There is no guarantee two customers run the same version of…
2
votes
1 answer

Server-client CLI messaging design

I'm prototyping some single machine, single user software with a client-server model; the first client for which will be a CLI, but I expect a (local) webapp/GUI to come later. For the CLI, I'd like to be able to either connect to an existing server…
OJFord
  • 249
  • 1
  • 8
1
2 3