Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
72 views

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 ...
2
votes
1answer
32 views

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 ...
4
votes
2answers
134 views

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 ...
0
votes
1answer
203 views

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 ...
2
votes
2answers
98 views

Choosing the right paradigm when building a GUI for an application

I'm building a GUI for a CL program and I have the following question Is it better to Have the GUI invoke the program behind the scenes using a shell with some options eg: If I were I were writing a ...
4
votes
2answers
761 views

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 ...
0
votes
0answers
173 views

How to make a proper argument manager for CLI Software?

I thinked about an ArgumentManager class working like this: A constructor with argc & argv(or std::vector) as parameter. getCount() => Returns argc. getArgLit(argLit) => Return true if the ...
0
votes
0answers
58 views

Character to show cut off file paths

I have a cli application, that has the option of displaying file paths in addition to typical output. Some file paths can be quite long so I want to cut the path off once it is longer than a certain ...
0
votes
1answer
1k views

How does one “secure” a python CLI-based application? [duplicate]

I have to provide a Python CLI-based program to one of my clients. I will give him both the compiled version (using py2exe or something simillar) of the application and the source code. The ...
0
votes
0answers
266 views

Is there a cross-platform way to execute a Python3 script fullscreen?

I'm currently developing a small CLI game in Python for practice. While I can set the shell width and height quite easily, there are lots of different screen sizes in use right now, and I would like ...
2
votes
1answer
615 views

Is there a cross-platform way to open a TCP connection, send a HTTP post request and keep the connection open?

I'm searching for a way to open a TCP connection, send a HTTP post request and keep the connection open. It would be great if I can achieve this without administrator/root rights, from a command-line ...
173
votes
5answers
25k views

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 ...
-1
votes
1answer
55 views

What is the broadly understood name of sub-command to check environment of the application? [closed]

Our CLI tool needs to have a sub command that verifies environment (amount of available disk space, RAM, GPU, versions of OS and drivers etc) to find out whether it can run. What would be the best ...
2
votes
0answers
62 views

Where to output from large CLI app [closed]

I've built a reasonably sized CLI app with everything split across different classes and namespaces in a logical way. However many components need to render output from within themselves. Which seems ...
3
votes
2answers
2k views

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 ...
0
votes
1answer
1k views

Rich console UI

There are bunch of console programs and especially games using full redraw (not sure ho this correctly named) of console window. For example, look at output of linux top program -> http://upload....
12
votes
2answers
9k views

Is it crazy to develop a TUI today? [duplicate]

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 ...
0
votes
2answers
931 views

Why to have an application with GUI on linux when command line is available?

If the question appears to be off topic then please migrate to some other suitable domain on stackexchange. Q.why to have GUI along with CLI, when you already have command line interface? I'm ...
37
votes
7answers
4k views

Is the development of CLI apps considered “backward”? [closed]

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 ...
0
votes
1answer
722 views

Best way to build a hierarchy CLI menu?

I want to build a command line interface with menus and sub-menus and eventually the leafs of the tree should be operations like.. bank management -> account management -> add acount (insert account ...
3
votes
2answers
2k views

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 ...
6
votes
1answer
1k views

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 ...
11
votes
4answers
20k views

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 ...
18
votes
9answers
4k views

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 ...
1
vote
5answers
170 views

How to structure reading of commands given at a(n interactive) CLI prompt?

Let's say I have a program called theprogram (the marketing team was on strike when the product was to be named). I start that program by typing, perhaps not surprisingly, the program name as a ...