-
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
Make cmsRun-compatible argparse parser #34469
Comments
A new Issue was created by @kpedro88 Kevin Pedro. @Dr15Jones, @perrotta, @dpiparo, @silviodonato, @smuzaffar, @makortel, @qliphy can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
assign core |
New categories assigned: core @Dr15Jones,@smuzaffar,@makortel you have been requested to review this Pull request/Issue and eventually sign? Thanks |
Apparently there is already some support for this: https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideAboutPythonConfigFile#argparse Encapsulating this behavior in a derived class like |
Following up from Core Software meeting:
With that in mind, as @Dr15Jones requested, I've created a draft PR that modifies Some items to consider:
Feedback welcome! |
This is done now (#42650, #42798, #42823, #43042, #43102, #43116). @cms-sw/core-l2 can you sign and close? (edit: and also dmwm/CRABServer#7888, dmwm/CRABClient#5210 (ref. dmwm/CRABClient#5208)) |
+core |
@cmsbuild, please close |
This issue is fully signed and ready to be closed. |
For future reference when considering similar interface changes: the site tests from computing should also be considered as a separate user/stakeholder. (They did use |
Currently, the "official" recommendation to enable command-line arguments in
cmsRun
configs is VarParsing. This is a very old and limited parser, with strange behavior (e.g. assigning to aVarParsing.multiplicity.list
object actually appends to it). However, it does handle the difference insys.argv
content when a config is executed withpython
vs. withcmsRun
.Having a drop-in extension of
argparse
's parser would be a useful improvement to this situation.argparse
offers significantly more functionality and is more familiar to incoming developers who have experience with python outside of CMSSW.See also: #29338
attn: @davidlange6
The text was updated successfully, but these errors were encountered: