-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Can module argument be optional with --http
?
#36
Comments
This was disabled intentionally and should remain thus at least for non-
I don't think it can be made optional for as long as the type is set to the checking function: Lines 93 to 109 in 24a561c
There simply is no way of knowing whether the user intended a switch parameter or the next argument. That said, pdoc uses the default if simply : is passed to --http , as documented.
This was introduced in stead of a flood of separate switches for as little used a feature. At the time, I thought
More than one module can be specified. What then? It isn't that hard to click through another hyperlink. Or even just leave the tab in development open. |
Thanks for the feedback. I missed the shortcut on just passing |
In pdoc,
pdoc --http
would create a summary of all modules in that environment.However, in pdoc3, the same command
pdoc3 --http
returns an error that no module was specified (and no argument no http), so you launch with something likepdoc3 csv --http localhost:8000
and have to navigate to http://localhost:8000/csv/Three questions:
localhost:8000
if no arguments are provided to --http?(base) 05:20 [PDOC] ¿ pdoc csv --http localhost:8000 Starting pdoc server on localhost:8000 pdoc server ready at http://localhost:8000/csv/ # ^ instead of "pdoc server ready at http://localhost:8000/"
The text was updated successfully, but these errors were encountered: