DescriptionConsolidate most CommandLine code across platforms.
Significant refactoring with some notable behavior changes:
1. Switches are appended preceding existing arguments (after other swtiches).
2. (Windows) command_line_string() is generated and properly quoted/escaped.
3. Appended switches will retain their (optional) included prefixes (--,-,/).
Notable internal changes (shouldn't affect behavior):
1. (Windows) Generate the cl string, instead of storing&updating the original.
2. Explicitly retain switch prefixes (--,-,/) (was automatic in init*/ctor).
Update (obvious) code expecting switches to be appended antecedent to args.
Add Nico's test from: codereview.chromium.org/6728016/.
An intermediary CL landed between patch set 3 and 4, see:
http://codereview.chromium.org/6596020
BUG=73195, 67764
TEST=Commandline usage.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85360
Patch Set 1 #Patch Set 2 : Crutch CommandLineTest.CommandLineConstructor #Patch Set 3 : Fix Test #
Total comments: 16
Patch Set 4 : Major refresh after r76339 and r76419. #
Total comments: 30
Patch Set 5 : Address some comments. #
Total comments: 6
Patch Set 6 : Address additional comments, additional refactoring. #
Total comments: 6
Patch Set 7 : Nix program_path_, add and update comments. #
Total comments: 12
Patch Set 8 : Fix nits, merge changes. #
Messages
Total messages: 14 (0 generated)
|