-
Notifications
You must be signed in to change notification settings - Fork 188
ipinfo man page #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ipinfo man page #194
Conversation
UmanShahzad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Can you show how the new
-hlooks now? - We've made our "source file" be the actual manpage format now basically, and it's actually not a very good format to write in, as compared to markdown for example.
I'm looking at this with fresh eyes and thinking it may not be worth the maintenance burden to maintain the docs like this. If we change things, even testing the CLI's -h will become cumbersome as we'd have to re-build and re-run each time.
What I recall the original motivation on this was, it was to allow ipinfo's help to be similar as git - when you do -h, it gives a short help, and when you do --help, it opens up a reader like less and shows extremely detailed documentation with many examples and explanations.
Can you check how git does --help like that but keeps -h as a short desc? It's actually using a manual page for --help but how do we just 'open' the manpage with --help transparently like that?
|
@UmanShahzad should we proceed with this new approach where the source file is in the |
|
@Taimoor-12 let's try an approach that doesn't involve any actual The main benefit I personally find from a So can we find a way where |
|
@UmanShahzad If I understand correctly, we want to put all the information about the |
|
Even for |
|
What kind of a structure should we follow for the hardcoded string that will be paged with |
|
@Taimoor-12 we can follow our own structure at this point - anything that just allows us to communicate a lot more examples than currently. It could be the same structure but with just more details, explaining all edge cases, etc. |
UmanShahzad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh we're just executing less quite literally. Is that how this is done in CLIs like psql or something to achieve the pager?
|
I think yes. I encountered a CLI called Through the use of flags and when |
|
Alright it's good, but note that the pager is configurable I believe by some env var - can you research if that's the case and then use that? If not lemme know |
|
Yes the pager can be set through an env var called |
|
Alright let's incorporate that! |




Includes the man page written in
roffmarkup, parsing the man page to print formatted--helpoutput on the terminal and handling the installation of the man page to the user's local machine.