Showing a man page in C++ -
i created man page c++ application , show user when particular flag specified in command line. system("man myapplication")
way this, or there better options?
i'd take nroff (text) output of man
, stick either in code 1 huge string or in separate file depending on how many pieces program installs with.
calling system("man")
requires lot of dependencies last thing unfortunate user wants deal after typing my_program --long-help
. work fine in many cases, when didn't you'd lose important feature of program , have report rather silly "sorry: no long available".
this increase portability systems never had man
program.
Comments
Post a Comment