[Rt-commit] r19542 - in rt/3.999/trunk: .
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu May 7 03:30:49 EDT 2009
Author: sunnavy
Date: Thu May 7 03:30:48 2009
New Revision: 19542
Modified:
rt/3.999/trunk/ (props changed)
rt/3.999/trunk/sbin/rt-update-config
Log:
r20883 at sunnavys-mb (orig r19330): sunnavy | 2009-04-23 09:21:04 +0800
improve a bit
Modified: rt/3.999/trunk/sbin/rt-update-config
==============================================================================
--- rt/3.999/trunk/sbin/rt-update-config (original)
+++ rt/3.999/trunk/sbin/rt-update-config Thu May 7 03:30:48 2009
@@ -61,6 +61,12 @@
unless GetOptions( \%args, 'name=s', 'value=s', 'show',
'without-doc', 'help', );
+# so we can run: $0 rtname example.com
+if ( @ARGV ) {
+ $args{name} ||= shift;
+ $args{value} ||= shift;
+}
+
# XXX currently, $args{value} only supports string values.
# maybe we need to add undef and ref supports too
if ( $args{name} && defined $args{value} && ! $args{show} ) {
More information about the Rt-commit
mailing list