Skip to content

Commit 27db96f

Browse files
author
Anthony Leonardo Gracio
committed
UA04-035: Fix gnatmetric progress report
And use --help instead of --version to know if we should add the --no-subprojects option or not. Change-Id: I2b54b6838439dd3c99707f852dd2602d653d239c
1 parent 1b541b8 commit 27db96f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

share/support/ui/gnatmetric.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<description>Generic launch of gnat metric</description>
2121
<command-line>
2222
<arg>%gnathub</arg>
23+
<arg>-d</arg>
2324
<arg>-P%PP</arg>
2425
<arg>%X</arg>
2526
<arg>%subdirsarg</arg>
@@ -284,6 +285,7 @@
284285
<read-only>TRUE</read-only>
285286
<command-line>
286287
<arg>%gnathub</arg>
288+
<arg>-d</arg>
287289
<arg>-P%PP</arg>
288290
<arg>%X</arg>
289291
<arg>%subdirsarg</arg>
@@ -311,6 +313,7 @@
311313
<read-only>TRUE</read-only>
312314
<command-line>
313315
<arg>%gnathub</arg>
316+
<arg>-d</arg>
314317
<arg>-P%PP</arg>
315318
<arg>%X</arg>
316319
<arg>%subdirsarg</arg>
@@ -342,7 +345,7 @@ def get_no_subprojects_arg():
342345
else:
343346
exe = "gnatmetric"
344347

345-
help_output = GPS.Process(exe + " --version").get_result()
348+
help_output = GPS.Process(exe + " --help").get_result()
346349

347350
if "--no-subprojects" in help_output:
348351
return "--no-subprojects"

0 commit comments

Comments
 (0)