|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
quick question about --usageHi there,
From the docs: "usage: The “Usage” string that will be printed with the help5. If not specified, it will be generated automatically. Optional." Does it mean I cannot use the autogenerated part of the usage string (you know everything after the product/package name) if I specify "usage"? -- Papp, Gyozo Virusbuster Kft _______________________________________________ Help-gengetopt mailing list Help-gengetopt@... http://lists.gnu.org/mailman/listinfo/help-gengetopt |
|
|
Re: quick question about --usagePapp Gyozo (VBuster) wrote:
> Hi there, > >> From the docs: > "usage: The “Usage” string that will be printed with the help5. If > not specified, it will be generated automatically. Optional." > > Does it mean I cannot use the autogenerated part of the usage string > (you know everything after the product/package name) if I specify > "usage"? > hi there! well actually, if you specify your usage, this will overwrite the one that's automatically generated... if you need also the one that's automatically generated, probably you should use "purpose" or "description" (http://www.gnu.org/software/gengetopt/gengetopt.html#Basic-Usage). Would that fit your need? Otherwise, could you please provide me your scenario? hope to hear from you soon! cheers Lorenzo -- Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com http://www.myspace.com/supertrouperabba BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com http://www.gnu.org/software/src-highlite http://www.gnu.org/software/gengetopt http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net _______________________________________________ Help-gengetopt mailing list Help-gengetopt@... http://lists.gnu.org/mailman/listinfo/help-gengetopt |
|
|
Re: quick question about --usageHi there,
> Papp Gyozo (VBuster) wrote: > > > >> From the docs: > > "usage: The “Usage” string that will be printed with the help5. If > > not specified, it will be generated automatically. Optional." > > > > Does it mean I cannot use the autogenerated part of the usage string > > (you know everything after the product/package name) if I specify > > "usage"? > > well actually, if you specify your usage, this will overwrite the one > that's automatically generated... > > if you need also the one that's automatically generated, probably you > should use "purpose" or "description" > > Would that fit your need? Otherwise, could you please provide me your > scenario? Thanks. It is nothing specific. I was just curious but failed to compile the latest package till now on MinGW (nothing to do with the package rather the new environment) thus I did not manage to try it myself. _______________________________________________ Help-gengetopt mailing list Help-gengetopt@... http://lists.gnu.org/mailman/listinfo/help-gengetopt |
|
|
Re: quick question about --usageHmm...
Actually usage string cannot be by passed anyhow. Is it intended? If I don't specify custom usage in .ggo, gengetopt will do it instead of me. If I could specify an empty string, then _print_help() would print several empty lines: if (strlen(cmdline_options_purpose) > 0) printf("\n%s\n", cmdline_options_purpose); printf("\n%s\n\n", cmdline_options_usage); while (cmdline_options_help[i]) while purpose are really optional (see if). _______________________________________________ Help-gengetopt mailing list Help-gengetopt@... http://lists.gnu.org/mailman/listinfo/help-gengetopt |
|
|
Re: quick question about --usageOK, clarify the whole scenario.
My basic problem is that the package name is different from the name of the binary. That's why the current implementation does not suffice my needs because it refers unconditionally to <func_name>_PACKAGE #define. > Hmm... > > Actually usage string cannot be by passed anyhow. Is it intended? > > If I don't specify custom usage in .ggo, gengetopt will do it instead of me. > If I could specify an empty string, then _print_help() would print several > empty lines: > > if (strlen(cmdline_options_purpose) > 0) > printf("\n%s\n", cmdline_options_purpose); > > printf("\n%s\n\n", cmdline_options_usage); > while (cmdline_options_help[i]) > > > while purpose are really optional (see if). _______________________________________________ Help-gengetopt mailing list Help-gengetopt@... http://lists.gnu.org/mailman/listinfo/help-gengetopt |
|
|
Re: quick question about --usagePapp Gyozo (VBuster) wrote:
> Hmm... > > Actually usage string cannot be by passed anyhow. Is it intended? > > If I don't specify custom usage in .ggo, gengetopt will do it instead of me. > If I could specify an empty string, then _print_help() would print several empty lines: > > if (strlen(cmdline_options_purpose) > 0) > printf("\n%s\n", cmdline_options_purpose); > > printf("\n%s\n\n", cmdline_options_usage); > while (cmdline_options_help[i]) > > > while purpose are really optional (see if). you're right! I should put the printing of the usage string under the scope of an if, just like purpose. I'll include it in the next release. thanks Lorenzo -- Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com http://www.gnu.org/software/src-highlite http://www.gnu.org/software/gengetopt http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net _______________________________________________ Help-gengetopt mailing list Help-gengetopt@... http://lists.gnu.org/mailman/listinfo/help-gengetopt |
| Free Forum Powered by Nabble | Forum Help |