]> khamidou — GitHub mirrors - arcanist.git/commitdiff
arc diff: --only doesn't conflict with --nounit or --nolint
authorAdam Simpkins <simpkins@fb.com>
Tue, 17 May 2011 19:54:38 +0000 (12:54 -0700)
committerAdam Simpkins <simpkins@fb.com>
Tue, 17 May 2011 20:08:21 +0000 (13:08 -0700)
Summary:
The --only flag implies --nounit and --nolint, so there's really no
conflict if these flags are specified together.

(My wrapper around arc diff automatically specifies --nounit in some
cases.  It is useful to be able to manually add --only in some cases,
and not have it fail because it conflicts with the automatically
specified --nounit flag.)

Test Plan:
Ran "arc diff --only --nounit".

Reviewed By: epriestley
Reviewers: epriestley, jungejason
CC: aran, epriestley, simpkins
Differential Revision: 298

src/workflow/diff/ArcanistDiffWorkflow.php

index 64295f3caeb1eead5f6cb10ee7e1d903edea1c8c..1f5f3f05f3d8d4771694659ad20a7ef680232d80 100644 (file)
@@ -118,8 +118,6 @@ EOTEXT
           'advice'    => '--only suppresses lint.',
           'apply-patches' => '--only suppresses lint.',
           'never-apply-patches' => '--only suppresses lint.',
-          'nounit'    => '--only implies --nounit.',
-          'nolint'    => '--only implies --nolint.',
         ),
       ),
       'preview' => array(