diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-24 07:38:54 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-24 07:38:54 +0000 |
| commit | 6de1b408eed9ef9b21010316ecde9d7434c877e8 (patch) | |
| tree | 3c9e181a7408293ef09051003cec86daa9fe649e | |
| parent | 0f110ebed58628b7f11f2634f220b1e265bba590 (diff) | |
* ext/tk/sample/ttk_wrapper.rb: should show usage when no script is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ext/tk/sample/ttk_wrapper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/sample/ttk_wrapper.rb b/ext/tk/sample/ttk_wrapper.rb index 4a4491b5bd..8bd818f5c4 100644 --- a/ext/tk/sample/ttk_wrapper.rb +++ b/ext/tk/sample/ttk_wrapper.rb @@ -4,7 +4,7 @@ # # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) # -version = '0.1' +version = '0.1.1' # ########################################################################## # parse commandline arguments @@ -144,7 +144,7 @@ setTheme(OPTS[:theme]) if OPTS[:theme] ########################################################################## # load script ########################################################################## -if (script = File.expand_path(ARGV.shift)) +if (path = ARGV.shift) && (script = File.expand_path(path)) print "load script \"#{script}\"\n" if OPTS[:verbose] load(script) else |
