[Bug 1383] New: Swift commandline switch conflicts with args
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1383 Summary: Swift commandline switch conflicts with args Product: Swift Version: 0.95 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Configuration AssignedTo: [email protected] ReportedBy: [email protected] One of the commandline arg to the Swift application I am working with is "p" which seems to be conflicting with "-p" arg of Swift which seems to be for a properties file: swift -sites.file sites.local.xml -config cf -tc.file apps dsp.blues.swift -a=1 -loc=./dcap -p=2 -I=10 -n=2 -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1383 Mihael Hategan <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Mihael Hategan <[email protected]> 2014-12-12 15:26:04 --- Ok, so -p is picked up by swiftrun, not Loader.java -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1383 Mihael Hategan <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Mihael Hategan <[email protected]> 2014-12-12 15:51:19 --- So swiftrun, which is a wrapper around swift that deals with run directories and, in 0.95, also deals with the new config to sites/tc conversion, uses Getopt::Long to process some of the command line args. Getopt::Long is not aware of where in argv it should stop processing arguments, so it goes into the script arguments. Combined with the auto_abbreviation setting for Getopt, this results in -p being interpreted in the wrong place. I disabled auto_abbreviation. This doesn't fully fix the problem, since "-properties" will still be picked up by Getopt, but it reduces the likelihood of a collision. -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@mcs.anl.gov