]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Print effective command line option (after target expansion)
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 3 May 2016 07:51:54 +0000 (09:51 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 3 May 2016 08:12:59 +0000 (10:12 +0200)
novaboot

index f2568e279b34ae73ed3e4ae2dc6ada0b6d922bc4..27bc6664bd78f4628851bdcafe5c32ef6fd2ba31 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -235,6 +235,11 @@ my %opt_spec;
        push(@target_expanded, @$remaining_args);
        $t = $explicit_target;
     }
+
+    (undef, my @args) = @ARGV;
+    @args = (@target_expanded, @args);
+    print STDERR "novaboot: Effective options: @args\n";
+
     Getopt::Long::Configure(qw/no_ignore_case no_pass_through/);
     GetOptionsFromArray(\@target_expanded, %opt_spec) or die ("Error in target definition");
 }