Changeset 1857 for trunk/bin/xsd2ruby.rb
- Timestamp:
- 06/19/07 23:21:24 (1 year ago)
- Files:
-
- trunk/bin/xsd2ruby.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bin/xsd2ruby.rb
r1437 r1857 11 11 OptSet = [ 12 12 ['--xsd','-x', GetoptLong::REQUIRED_ARGUMENT], 13 ['--classname','-n', GetoptLong::NO_ARGUMENT], 13 ['--module_path','-m', GetoptLong::REQUIRED_ARGUMENT], 14 ['--classdef','-e', GetoptLong::OPTIONAL_ARGUMENT], 15 ['--mapping_registry','-r', GetoptLong::NO_ARGUMENT], 16 ['--mapper','-p', GetoptLong::NO_ARGUMENT], 14 17 ['--force','-f', GetoptLong::NO_ARGUMENT], 15 18 ['--quiet','-q', GetoptLong::NO_ARGUMENT], … … 44 47 45 48 Example: 46 #{ $0 } --xsd myapp.xsd --class name Foo49 #{ $0 } --xsd myapp.xsd --classdef foo 47 50 48 51 Options: 49 52 --xsd xsd_location 50 --classname classname 53 --classdef [filenameprefix] 54 --mapping_registry 55 --mapper 56 --module_path [Module::Path::Name] 51 57 --force 52 58 --quiet … … 63 69 when "--xsd" 64 70 xsd = arg 65 when "--classname" 71 when "--module_path" 72 opt['module_path'] = arg 73 when "--classdef", "--mapping_registry", "--mapper" 66 74 opt[name.sub(/^--/, '')] = arg.empty? ? nil : arg 67 75 when "--force"