Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Issue 24613003: Allow typing label names on Windows by not treating things that start with slashes as arguments rat… (Closed)

Created:
7 years, 2 months ago by brettw
Modified:
7 years, 2 months ago
Reviewers:
Nico, scottmg
CC:
chromium-reviews
Visibility:
Public.

Description

Allow typing label names on Windows by not treating things that start with slashes as arguments rather than switches. The old command line parsing is still run so some code could get confused later since / will also be treated as a switch if you ask for it. This seems not as likely to happen that the label will match a switch. If it does, we'll have to change the CommandLine class to make the "/" behavior optional. Fix a "desc" crash attributing blame due to a null pointer. BUG= R=scottmg@chromium.org, thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225277

Patch Set 1 #

Total comments: 1

Patch Set 2 : Now with base #

Total comments: 1

Patch Set 3 : const removed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -2 lines) Patch
M base/command_line.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M base/command_line.cc View 1 2 2 chunks +15 lines, -1 line 0 comments Download
M tools/gn/command_desc.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/gn_main.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
brettw
7 years, 2 months ago (2013-09-25 17:13:17 UTC) #1
scottmg
lgtm https://codereview.chromium.org/24613003/diff/1/tools/gn/gn_main.cc File tools/gn/gn_main.cc (right): https://codereview.chromium.org/24613003/diff/1/tools/gn/gn_main.cc#newcode23 tools/gn/gn_main.cc:23: // switches. This makes it impossible to type ...
7 years, 2 months ago (2013-09-25 17:23:23 UTC) #2
brettw
thakis for base changes: I went back and forth about whether "slash is a switch" ...
7 years, 2 months ago (2013-09-25 18:14:19 UTC) #3
scottmg
gn lgtm https://codereview.chromium.org/24613003/diff/6001/base/command_line.cc File base/command_line.cc (right): https://codereview.chromium.org/24613003/diff/6001/base/command_line.cc#newcode38 base/command_line.cc:38: size_t switch_prefix_count = arraysize(kSwitchPrefixes); nit; don't see ...
7 years, 2 months ago (2013-09-25 18:20:35 UTC) #4
Nico
Huh, slashes not being switches is pretty surprising on Windows, no? Isn't there some other ...
7 years, 2 months ago (2013-09-25 20:08:16 UTC) #5
scottmg
On 2013/09/25 20:08:16, Nico wrote: > Huh, slashes not being switches is pretty surprising on ...
7 years, 2 months ago (2013-09-25 20:18:00 UTC) #6
brettw
Nobody is going to remember a !! synonym and I agree special casing "//" is ...
7 years, 2 months ago (2013-09-25 21:16:27 UTC) #7
Nico
On Wed, Sep 25, 2013 at 2:16 PM, <brettw@chromium.org> wrote: > Nobody is going to ...
7 years, 2 months ago (2013-09-25 21:23:26 UTC) #8
brettw
7 years, 2 months ago (2013-09-25 23:36:11 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 manually as r225277 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698