Project

Profile

Help

Task #6902

Correct output for missing options

Added by Mark Zaslavskiy over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Timofey Turenko
Category:
mdbci testing
Sprint/Milestone:
Start date:
21.03.2016
Due date:
% Done:

100%

Estimated time:
3:00 h
Spent time:
Target branch:
Test scenario:

./mdbci show versions --platform
=begin
./mdbci: option `--platform' requires an argument
ERROR: /usr/lib/ruby/1.9.1/getoptlong.rb:394:in `set_error'
/usr/lib/ruby/1.9.1/getoptlong.rb:514:in `get'
/usr/lib/ruby/1.9.1/getoptlong.rb:602:in `block in each'
/usr/lib/ruby/1.9.1/getoptlong.rb:601:in `loop'
/usr/lib/ruby/1.9.1/getoptlong.rb:601:in `each'
./mdbci:40:in `<main>'
ERROR: option `--platform' requires an argument
=end
## $? == 1


Description

For the current moment output is hardly readable:

vood@vood-ThinkPad:~/ws/mdbci$ ./mdbci show versions --platform
./mdbci: option `--platform' requires an argument
/usr/lib/ruby/1.9.1/getoptlong.rb:394:in `set_error': option `--platform' requires an argument (GetoptLong::MissingArgument)
from /usr/lib/ruby/1.9.1/getoptlong.rb:514:in `get'
from /usr/lib/ruby/1.9.1/getoptlong.rb:602:in `block in each'
from /usr/lib/ruby/1.9.1/getoptlong.rb:601:in `loop'
from /usr/lib/ruby/1.9.1/getoptlong.rb:601:in `each'
from ./mdbci:40:in `<main>'

Switch stacktrace and error text

History

#1 Updated by Ilfat Kinyaev over 4 years ago

  • Estimated time set to 3:00 h

#2 Updated by Ilfat Kinyaev over 4 years ago

  • Status changed from New to Active / In progress
  • % Done changed from 0 to 80

#3 Updated by Ilfat Kinyaev over 4 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Ilfat Kinyaev to Mark Zaslavskiy
  • % Done changed from 80 to 100

#5 Updated by Mark Zaslavskiy over 4 years ago

  • Status changed from Review to New
  • Assignee changed from Mark Zaslavskiy to Ilfat Kinyaev

#6 Updated by Ilfat Kinyaev over 4 years ago

Why first line of error output is constant like a ./mdbci: option `--platform' requires an argument?

#10 Updated by Ilfat Kinyaev over 4 years ago

  • Status changed from New to Review
  • Assignee changed from Ilfat Kinyaev to Mark Zaslavskiy

#11 Updated by Mark Zaslavskiy over 4 years ago

Tab symbols should be converted to two spaces.

#12 Updated by Mark Zaslavskiy over 4 years ago

  • Status changed from Review to New
  • Assignee changed from Mark Zaslavskiy to Ilfat Kinyaev

#14 Updated by Ilfat Kinyaev over 4 years ago

  • Status changed from New to Review
  • Assignee changed from Ilfat Kinyaev to Mark Zaslavskiy

#15 Updated by Mark Zaslavskiy over 4 years ago

Please add test scenario!

#16 Updated by Mark Zaslavskiy over 4 years ago

  • Status changed from Review to New
  • Assignee changed from Mark Zaslavskiy to Ilfat Kinyaev

#17 Updated by Ilfat Kinyaev over 4 years ago

  • Status changed from New to Active / In progress

#18 Updated by Ilfat Kinyaev over 4 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Ilfat Kinyaev to Mark Zaslavskiy
  • Test scenario updated (diff)

Added test scenario.

#19 Updated by Mark Zaslavskiy over 4 years ago

  • Status changed from Review to Testing
  • Assignee changed from Mark Zaslavskiy to Timofey Turenko

#20 Updated by Timofey Turenko over 4 years ago

  • Status changed from Testing to Closed

Also available in: Atom PDF