[Rt-commit] r19330 - rt/3.999/branches/config-in-db/sbin
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Wed Apr 22 21:21:04 EDT 2009
Author: sunnavy
Date: Wed Apr 22 21:21:04 2009
New Revision: 19330
Modified:
rt/3.999/branches/config-in-db/sbin/rt-update-config
Log:
improve a bit
Modified: rt/3.999/branches/config-in-db/sbin/rt-update-config
==============================================================================
--- rt/3.999/branches/config-in-db/sbin/rt-update-config (original)
+++ rt/3.999/branches/config-in-db/sbin/rt-update-config Wed Apr 22 21:21:04 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