Failure to specify option argument can lead to overwritten input files
If I have two root files:
and suppose I want to just dump the configuration of a process that would merge the files. If I type:
art -c config.fcl --debug-config file1.root file2.root
that is equivalent to:
art -c config.fcl --debug-config=file1.root -s file2.root
thus overwriting file1.root with a text printout of the job configuration.
#1 Updated by Christopher Green almost 5 years ago
- Category set to Application
- Status changed from New to Rejected
- SSI Package art added
- SSI Package deleted (
When the command line system was designed, this was recognized as a possible outcome of command-line specification mistakes, but the consulted experiments stated explicitly that this was an acceptable risk. Any change to mitigate this problem would be a breaking change, necessitating changes to scripts and use patterns.