From 0769422c15da1df36951fbdab5338ef6d0ab3f55 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 12 Jul 2013 11:53:26 +0300 Subject: Fix order of argument check --- gsxcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gsxcl') diff --git a/gsxcl b/gsxcl index 4a7edb9..2bbace3 100755 --- a/gsxcl +++ b/gsxcl @@ -47,7 +47,7 @@ EOT; } $opts = getopt( 's:u:p:r:e:m:q:f:d:' ); -list( $noun, $verb ) = array_slice( $argv, -2, 2 ); +list( $verb, $noun ) = array_slice( $argv, -2, 2 ); if( !in_array( $noun, $nouns )) { exit( "Error: invalid noun - {$noun}.\n" ); -- cgit v1.2.3