From: Martin Quinson Date: Wed, 13 Apr 2016 09:44:13 +0000 (+0200) Subject: simgrid_update_xml: more explicit message when no file is provided X-Git-Tag: v3_13~97^2~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4fee224a17662ec1877876618bb9e1318528a911?ds=sidebyside simgrid_update_xml: more explicit message when no file is provided --- diff --git a/tools/simgrid_update_xml.pl b/tools/simgrid_update_xml.pl index da3df3f190..8419bd7d79 100755 --- a/tools/simgrid_update_xml.pl +++ b/tools/simgrid_update_xml.pl @@ -144,16 +144,13 @@ use strict; my $fromversion=-1; my $toversion=4; -my($output_string); - -my $filename = $ARGV[0] or die "simgrid_update_xml.pl \n"; +my $filename = $ARGV[0] or die "Usage: simgrid_update_xml.pl file_to_convert.xml\nPlease provide an XML to convert as a parameter.\n"; open INPUT, "$filename" or die "Cannot open input file $filename: $!\n"; -$output_string = "\n". +my $output_string = "\n". "\n". "\n"; - my($AS_opened)=0; my $line;