ppp icon indicating copy to clipboard operation
ppp copied to clipboard

Way of printing option descriptions?

Open njh opened this issue 4 years ago • 6 comments

The option_t structure has a description string defined. And most of the option_t structure do seem to define a description for each of the options.

For example:

    { "ipv6cp-accept-remote", o_bool, &ipv6cp_allowoptions[0].accept_remote,
      "Accept peer's interface identifier for itself", 1 },

But I can't see any way of printing this out? Is it a feature waiting to be implemented?

njh avatar Feb 13 '21 01:02 njh

@paulusmack: What do you think?

Neustradamus avatar Feb 14 '21 15:02 Neustradamus

But I can't see any way of printing this out? Is it a feature waiting to be implemented?

Looks like it is. I added that back in 1998, so I don't remember exactly what I had in mind.

A variant of the dump or dryrun option to print the selected options could be useful. Or a "long help" option to print all the option names and their descriptions.

paulusmack avatar Feb 15 '21 03:02 paulusmack

Just opened a pull request to fix this.

enaess avatar Aug 15 '22 16:08 enaess

@paulusmack: Here: https://github.com/ppp-project/ppp/pull/365.

Neustradamus avatar Aug 15 '22 16:08 Neustradamus

@enaess Amazing! Thank you!

njh avatar Aug 16 '22 08:08 njh

@paulusmack this issue can now be closed

enaess avatar Sep 09 '22 04:09 enaess