Skip to main content

All Questions

Tagged with
5 votes
1 answer
194 views

Parsing command-line arguments with getopt in C++

I did not find anything to parse command-line arguments in C++ (which was surprising), so I fell back to getopt() which has served me well in C (I am currently not ...
Harith's user avatar
  • 9,462
1 vote
1 answer
93 views

Linux terminal like parsing

I'm creating a program that will hopefully operate like linux terminal (basic commands) for learning purposes. ...
depperm's user avatar
  • 937
4 votes
1 answer
100 views

Parametric - a simple program argument parser

I've made a little header-only library for handling user input for console applications, I'd really appreciate it if you guys took a short look at it and told me what you think. The goal of the ...
Goubermouche's user avatar
2 votes
1 answer
177 views

Command-line parser with built-in error checking

Simple command-line option parser with automatic setting of variables and built-in error checking. The story is I was working on another new project that had a lot of configurable options, as they ...
Mode77's user avatar
  • 663
1 vote
1 answer
142 views

Company database REPL program in Rust for Chapter 8 of The Book

Using a hash map and vectors, create a text interface to allow a user to add employee names to a department in a company. For example, “Add Sally to Engineering” or “Add Amir to Sales.” Then let the ...
nicoty's user avatar
  • 259
6 votes
1 answer
202 views

Tool for converting OEIS sequences into Desmos lists

https://github.com/CascadeIllusion/DesmOEIS Recently began work on a Python project called DesmOEIS to build up my portfolio. It's a simple console program that looks up integer sequences from the ...
Emerald47890's user avatar
6 votes
2 answers
251 views

Compact command line argument parser : Revisited

This question is a follow up to my previous one which can be found here. The user dfhwze suggested me to look into compiler construction and recommended me to write a lexer and a parser that would ...
766F6964's user avatar
  • 901
2 votes
1 answer
500 views

Compact command line argument parser

So, I decided to write my own little command line argument parser for various other projects I work on. I am aware that there are many good command line parser libraries, but I did wrote my own anyway ...
766F6964's user avatar
  • 901
4 votes
0 answers
465 views

Wrapping argparse to use configuration file

I want to be able to both provide options through command line and from a configuration file. A single option could be served either by the user or by the configuration. But if is provided by both, ...
Adrien H's user avatar
  • 181
1 vote
1 answer
125 views

C - Argparse (Argument struct)

I'm trying to make something like Python's argparse in C. I created this Argument struct and functions; is my code good so far? ...
DeBos's user avatar
  • 525
8 votes
2 answers
555 views

Command line parser only with switches (if-less)

I've been playing around with C# 7 and created this if-less and switch-only command-line parser. What do you think of it? Can it be made more C# 7 or otherwise ...
t3chb0t's user avatar
  • 44.3k
2 votes
1 answer
537 views

Terminfo parser in C++

I've written a pretty minimal parser for terminfo files which works as intended. It compiles fine and I've actually setup some tests over here which pass successfully too. Now I would like to get it ...
Abhinav Gauniyal's user avatar
5 votes
1 answer
4k views

Python Hex Viewer

I have created an hex viewer in python, as a timed-challenge by friend. My implementation was in the form of a class, with a separate main file running with argparse...
Uriel's user avatar
  • 519
3 votes
0 answers
304 views

Console command parser for my custom Libgdx console (gamedev)

For a game I'm writing using LibGDX framework and Kotlin language, I've decided to make a dev console. This is a WIP line parser. Since there's already a decent amount of code written I've decided to ...
MrPlow's user avatar
  • 489
31 votes
1 answer
2k views

Using argparse module within cmd interface

I've created an application that uses a cmd interface. It has multiple levels, and the number of available commands and their complexity is growing. As such, I need to generalise argument parsing - of ...
Ramon's user avatar
  • 411

15 30 50 per page