aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-07-12 11:53:26 +0300
committerFilipp Lepalaan <f@230.to>2013-07-12 11:53:26 +0300
commit0769422c15da1df36951fbdab5338ef6d0ab3f55 (patch)
treeb5a2eb9e9ec745bcd41d2c1042e303ce10b96caa
parent89f03b1b33344f067b09f86bd7188963e2fd8d17 (diff)
downloadgsxlib-0769422c15da1df36951fbdab5338ef6d0ab3f55.tar.gz
gsxlib-0769422c15da1df36951fbdab5338ef6d0ab3f55.tar.bz2
gsxlib-0769422c15da1df36951fbdab5338ef6d0ab3f55.zip
Fix order of argument check
-rwxr-xr-xgsxcl2
1 files changed, 1 insertions, 1 deletions
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" );