cmdlineoptions/README.md

55 lines
1.9 KiB
Markdown
Raw Normal View History

2014-02-16 19:00:01 +01:00
Ever thought about learning a new programming language, doing your first try with a command line program, and first of all you want to have some command line options?
Maybe you have just an idea to do some difficult task in a small command line program, and of course you need options...
... but most of the time you have to reinvent the wheel?!
Why not using a small and easy library, which does exactly THAT task? Which gives you the possibility to fully concentrate on the original task to be done and developed?
This is a goal of this project.
2014-02-16 19:00:01 +01:00
The main goals of this project are a personal ones:
2014-12-09 19:25:44 +01:00
- to have fun programming similiar behaving code in different languages
- learning new programming languages through adding them to this repository
2013-12-24 16:14:17 +01:00
cmdlineoptions
2013-12-12 20:09:14 +01:00
===============
2013-12-24 16:14:17 +01:00
A library for some languages handling commandline options in the dashed fashion.
2013-12-12 20:23:02 +01:00
2013-12-24 16:14:17 +01:00
Currently available as:
- java
- Currently available just as a Java class, within an eclipse project. :)
- C
2014-03-09 19:07:18 +01:00
- static/shared library
2013-12-24 16:14:17 +01:00
- (C++ maybe coming soon...)
- maybe other languages in the future?
2013-12-12 20:23:02 +01:00
It supports single dashed options like "-h", double dashed options "--help" and additional option alternatives.
It has got automatic help handling of all configured options with "-h", "--help" and "-?".
2014-01-08 19:54:53 +01:00
In the end you can define your own commandline parameter style, because you define the option name yourself like 'CmdOptions.create("-myoption");' or '...create("+anotheropt")', etc.
2013-12-24 16:14:17 +01:00
The library - or better, the libraries - are planned to be consistent over all languages, so you are able to define and check and retrieve options with similar function calls.
2013-12-13 21:00:15 +01:00
2013-12-24 16:14:17 +01:00
Current work and future plans
2013-12-13 21:00:15 +01:00
===============
2013-12-24 16:14:17 +01:00
Working on:
2014-12-09 19:25:44 +01:00
- ~~JUnit tests~~
2014-12-09 22:24:59 +01:00
- ~~Java: better errorhandling~~
2014-12-09 19:25:44 +01:00
- ~~Java: Examples~~
- ~~C version~~
2013-12-24 16:14:17 +01:00
- Getting started
2014-12-09 22:24:59 +01:00
- Unit tests
- ~~Some java improvements~~
- get the improvments into the C version
2013-12-13 21:00:15 +01:00
2013-12-24 16:14:17 +01:00
Future plans:
2014-03-09 19:07:18 +01:00
- C++ class version
2014-12-09 19:25:44 +01:00
- haskell
2014-03-09 19:07:18 +01:00
- ...