Changeset 7467
- Timestamp:
- 02/12/08 10:56:54 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/command/sfCommandApplication.class.php
r7428 r7467 203 203 204 204 /** 205 * Returns the long version of the application. 206 * 207 * @param string The long version 208 */ 209 public function getLongVersion() 210 { 211 return sprintf('%s version %s', $this->getName(), $this->formatter->format($this->getVersion(), 'INFO'))."\n"; 212 } 213 214 /** 205 215 * Returns whether the application must be verbose. 206 216 * … … 295 305 break; 296 306 case 'version': 297 echo sprintf('%s version %s', $this->getName(), $this->formatter->format($this->getVersion(), 'INFO'))."\n";307 echo $this->getLongVersion(); 298 308 exit(0); 299 309 } branches/1.1/lib/command/sfSymfonyCommandApplication.class.php
r7438 r7467 130 130 } 131 131 } 132 133 /** 134 * @see sfCommandApplication 135 */ 136 public function getLongVersion() 137 { 138 return sprintf('%s version %s (%s)', $this->getName(), $this->formatter->format($this->getVersion(), 'INFO'), sfConfig::get('sf_symfony_lib_dir'))."\n"; 139 } 132 140 }

