All Questions
23
questions
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 ...
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.
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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?
...
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 ...
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 ...
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...
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 ...
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 ...