Skip to content

Exception is thrown when the analytics option was opted out #80

@NaagAlgates

Description

@NaagAlgates

Description
An exception is thrown when I opted for no analytics

Steps To Reproduce

  1. Go to Terminal
  2. Enter very_good --analytics
  3. Getting the below exception
Missing argument for "analytics".
#0      CommandRunner.usageException (package:args/command_runner.dart:95:7)
#1      CommandRunner.parse (package:args/command_runner.dart:123:35)
#2      VeryGoodCommandRunner.run (package:very_good_cli/src/command_runner.dart:63:27)
#3      main (file:///Users/xxxxxxxxxx/.pub-cache/hosted/pub.dartlang.org/very_good_cli-0.1.1/bin/very_good.dart:5:54)
#4      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

Expected Behavior
In my opinion, instead of an exception message, a plain text saying "You have not opted for analytics. To enable it do xxx things"

Screenshots
Exception_on_no_analytics

Additional Context
I have just shared my opinion. If this is the expected message, please close this ticket.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions