Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 1 of 2

Gengetopt is a tool to generate C code to parse getopt styled command line arguments. It's similar or even more powerful than the well known libpopt but does not add any run or compile time dependencies to your projects. Moreover reading/writing the options from/to config files is also supported.

5.0
 
  1 review  |  4 users  |  28,278 lines of code  |  2 current contributors  |  Analyzed 1 day ago
 
 

This package contains common functions for POSIX shell projects to increase code reuse: *shell-getopt: Shell implementation of getopt(1) utility and getopt family; *shell-config: to work (read, change and remove variables) with a shell-like config files; *shell-ini-config: to work with a ... [More] ini-like config files; *shell-signal: to change the action taken by a process on receipt of a specific signal; *shell-args: to check argument type, display version and program usage; *shell-ip-address: to validate the IP address; *shell-mail-address: to validate the domain and email address; *shell-quote: to quote variables; *shell-unittest: Unit testing framework for shell (xUnit compatible); *shell-error: to display error and verbose messages;... [Less]

5.0
 
  1 review  |  2 users  |  3,436 lines of code  |  1 current contributor  |  Analyzed 1 day ago
 
 

This is yet another C++ version of the getopt function, that is, for parsing command line options and environment variables. However, unlike other versions, the design goals of this one are: EASY to use EASY to learn mimc STL's streams minimum code to type smooth integration with STL types ... [More] Platform independant (ANSI C++) EASY to extend for your own types That is, you just construct a GetOpt_pp object with argc and argv, and then extract the options with the >> operator as an istream :) Example: We want to receive two options, one for an int (say, named -i and --test1), and another for a float (named -f and without long option). Results in test1 and test2 vars. int main(int argc, char* argv[]) { using namespace GetOpt; int test1 = 10; float test2 = 3.14f; GetOpt_pp ops(argc, argv); ops >> Option('i', "test1", test1) >> Option('f', test2); std::cout << test1 << "\n" << test2 << "\n"; return 0; }See the project's Wiki for documentation. Current version: 2.13 Coming soon: environment stream for inserting and extracting env vars! Don't miss GetOpt_pp Episode 3! This project belongs to FuDePAN. [Less]

0
 
  0 reviews  |  0 users  |  1,165 lines of code  |  0 current contributors  |  Analyzed about 18 hours ago
 
 

This project focus on programming practice. It provides some utils and tools for daily programming.

0
 
  0 reviews  |  0 users  |  0 current contributors
 
 

ImportantThis project is now an official PEAR package and has moved to PEAR website and repository. AboutConsole_CommandLine is a full featured package for managing command line options and arguments highly inspired from python optparse module, it allows the developer to easily build complex ... [More] command line interfaces. Main features: handles sub commands (ie. $ myscript.php -q subcommand -f file), can be completely built from an xml definition file, generate --help and --version options automatically, can be completely customized, and much more... InstallationJust run (with root privileges): $ pear install -f Console_CommandLineAnd to uninstall: $ pear uninstall Console_CommandLineDocumentationUser manual (work in progress) API docs ExamplesExample demonstrating Console_CommandLine basic features Example demonstrating the use of an xml definition file [Less]

0
 
  0 reviews  |  0 users  |  1,585 lines of code  |  0 current contributors  |  Analyzed 3 days ago
 
 

Shell Flags (shFlags) is a library written to greatly simplify the handling of command-line flags in Bourne based Unix shell scripts (bash, dash, ksh, sh, zsh) on many Unix OSes (Linux, Solaris, Mac OS X, etc.). Most shell scripts use getopt for flags processing, but the different versions of ... [More] getopt on various OSes make writing portable shell scripts difficult. shFlags instead provides an API that doesn't change across shell and OS versions so the script writer can be confident that the script will work. shFlags is a port of the google-gflags C++/Python library. [Less]

0
 
  0 reviews  |  0 users  |  2,279 lines of code  |  1 current contributor  |  Analyzed 5 days ago
 
 
Compare

Bash scripting utility for parsing command-line options (we're just getting started. Please come back soon.)

0
 
  0 reviews  |  0 users  |  382 lines of code  |  0 current contributors  |  Analyzed 4 days ago
 
 

Lineguide is a tool to generate code to parse command line options and arguments for C programs. The generated code includes actions for parsed options and arguments. Lineguide is a Python script file. You can embed it in your projects with copying, not without installing.

0
 
  0 reviews  |  0 users  |  2,207 lines of code  |  0 current contributors  |  Analyzed 7 days ago
 
 

Java equivalent of the GNU getopt

0
 
  0 reviews  |  0 users  |  0 current contributors  |  Analyzed 2 days ago
 
 

Looking for a replacement for getopt? Want to add commandline options to your program but don't want to get bogged down in the complexity of it all? Then SuperGetOpt is for you. Built-in type checking and error handling provide useful user feedback. Fixed and variable arg lists allowed. Here ... [More] is a simple example: superGetOpt(argc,argv, &argErr, "-mymixed %c %lf %s %d %hd",&my_c, &my_lf, &my_s, &my_d, &my_hd, //mixed types "-varfloats *%f", farray, &numInFArray, // variable number of floats "-varstrings *%s", sarray, &numInSArray, // variable number of strings "--help", &helpSet, // example of no arguments to a flag (char * ) 0 ); So if your executable is called with any of -mixed, -varfloats, -varstrings or --help flags, all associated arguments will be copied to the provided variables. There are no separate files to maintain. Everything is contained in your application. I've seen a lot of replacements for getopt, but they all have a learning curve and are not nearly as intuitive as this. No other approach I've seen is simpler or any more powerful. This can also be used for simple parsing of data in files. [Less]

0
 
  0 reviews  |  0 users  |  1,410 lines of code  |  1 current contributor  |  Analyzed about 15 hours ago
 
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.