المشاريعgetopt
حول
معالج بسيط لخيارات سطر الأوامر (C++11)
أدوات التطويرما يمكنك فعله
- Handy, one line per option.
- Tiny, cross-platform, self-contained, header-only.
- ZLIB/libPNG licensed.
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- +١
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلgetopt 

Simple command-line options handler (C++11).
Features
- Handy, one line per option.
- Tiny, cross-platform, self-contained, header-only.
- ZLIB/libPNG licensed.
Showcase
#> cat sample.cc
#include <iostream>
#include <string>
#include "getopt.hpp"
int main() {
// - No initialization required: (argc, argv) pair automatically retrieved.
// - First argument is default option value, then all option indentifiers follow.
bool help = getarg( false, "-h", "--help", "-?" );
int version = getarg( 0, "-v", "--version", "--show-version" );
int depth = getarg( 1, "-d", "--depth", "--max-depth");
std::string file = getarg( "", "-f", "--file" );
// [...]
std::cout << help << ',' << file << ',' << version << std::endl;
}
#> g++ sample.cc && ./a.out --file=/a/b/c --depth=123
0, /a/b/c, 123
Changelog
- v1.0.0 (2016/04/18): Initial version
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…