Added short version for most commonly used command line options#17486
Conversation
|
Does it make sense to also add -i, -is, -p and -ps for install, install silent, create portable copy and create portable copy silent? In corporate environments these are definitely commonly used. |
See test results for failed build of commit c9815a9e53 |
|
@Adriani90 wrote:
Definitely not. These are not commonly used, except by IT guys in various install automation scripts. And in scripts the long version should be preferred because it is self explanatory. Short forms are useful only for regularly (and manually) typed command lines. Even a short version for Also note that |
See test results for failed build of commit 8e07735ed7 |
1caab10 to
04dd8f4
Compare
|
@seanbudd, I am thinking of moving the parser code in a dedicated file, what would avoid the quite strange " |
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
|
also feel free to move the code outside of nvda.pyw |
See test results for failed build of commit b2d8ebf88c |
See test results for failed build of commit 0a180dce79 |
|
In future @CyrilleB79 please avoid merging master in when moving code. It makes it much harder to review with a command like |
seanbudd
left a comment
There was a problem hiding this comment.
Thanks @CyrilleB79 - reviewed with git diff -w --color-moved-ws=allow-indentation-change --color-moved 05edaba0545baa44dfbf086b31d63dccb9df36d2 83f4b1489e057602c3f48c223dddcfaf8b5dfbba
OK. Sorry for the complication. |
|
@CyrilleB79 - just to clarify, was fine in this case, but if there was modifications/moves mixed with the merge it would be challenging |
Summary of the issue: While translating the user guide, I found some errors: PR Added short version for most commonly used command line options #17486 The added command line parameters are not recorded in the user guide The list rendering is incorrect There is an error in the title "Changing the automatic update channel" The title of the "{#AutomaticAddonUpdates}" section needs to be updated Description of user facing changes Fix the above issues Description of development approach Update User Guide
Link to issue number:
Fixes #11644
Fixes #17485
Summary of the issue:
Description of user facing changes
-dfor--disable-addonsand-nfor--langDescription of development approach
sys.argvto know the options that NVDA has actually taken into account.languageHandler.getLanguageCliArgssince we do not use this function anymore and it was not correctly working as expected for some corner case (duplicated flag, incomplete flag)Testing strategy:
Manual tests from source:
--lang,-n,--disable-addons,-d.Also tested from launcher with options.
Known issues with pull request:
None
Code Review Checklist:
@coderabbitai summary