-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Let's document: pacman #5256
Comments
I thought of somthing else, But maybe that distinction is not necessary. |
The git man documentation uses a single-dash separator between man Wouldn't the I definitely understand |
@nikisix in an ordinary command, yes, but There are a lot of other options that are only available in the scope of the subcommand-like options (e.g. |
Since I assume that pacman has long-form options for each of the "subcommands", I think A bit unusual yes, but pacman doesn't appear to follow norms established by other subcommand-based applications. |
@sbrl did you see my |
I did, but I think keeping it similar to the existing subcommand system is perhaps better. But I do like the distinction you make there, I just think we should keep it simple. |
Wow great job @navarroaxel—you actually got it all done and really quickly (less than a week!) You get a 🥇 and |
Oops I forgot to close this 😄 |
Just logging my opinion, after the fact, that I'd initially be inclined to agree with @bl-ue's suggestion to name the pages At the moment we use hyphenated page names for three command formats:
Maybe we should consider a different convention to make things clearer? E.g.
Of course, that may break down if additional patterns come up (who knows, there may be some obscure tool that uses an even weirder format). Anyway, I thought I'd throw the idea out there to hear your thoughts. |
It's a good idea, because things can start becoming complex if you want to use the names in some way ( subcommand suggestion, etc.) and you have parent commands with dashes and subcommands, e.g. |
Hmm, interesting ideas here @bl-ue, @waldyrious! It's an awkward one, because there's no set standard for how it's done. If we included any underscores, I'd suggest a client update because it's extra work to do shift + - as opposed to just hitting the space as we have currently. Currently clients basically do We could even do 3 dashes, because then you'd be able to do this: tldr pacman --sync ....and it would be translated into this:
Thinking about it some more here, I think I'd actually suggest that 3 dashes would be the most optimal solution because it wouldn't require a client update or require users to learn any new syntax. |
The
pacman
command is a Swiss army knife to manage packages in Arch Linux-based OS and we should extend the currentpacman
page intldr
creating specific pages for its subcommands.The issue with
pacman
is that its subcommands are arguments in uppercase and the lowercased arguments are specific for that subcommand. If we review thepacman -Syu
command to upgrade the system:-y/--refresh
and-u/--sysupgrade
are specific arguments forpacman -S
or we can run the same command in its long form:pacman --sync --refresh --sysupgrade
.-D/--database
(pacman-database: add page #5302)-F/--files
(pacman-files: add page #5303)-Q/--query
(pacman-query: add page #5269)-R/--remove
(pacman-remove: add page #5273)-S/--sync
(pacman-sync: add page #5268)-T/--deptest
(pacman-deptest: add page #5304)-U/--upgrade
(pacman-upgrade: add page #5295)How should we name the page for
-S/--sync
argument? Maybepacman-sync.md
.The text was updated successfully, but these errors were encountered: