Skip to content

Misleading behavior if user provides a single command-line arg #591

@sethladd

Description

@sethladd

Consider this:

~/Code/dartdoc[new-layout*] $ dart bin/dartdoc.dart test_package
Generating documentation for 'dartdoc' into /Users/sethladd/Code/dartdoc/doc/api/.

The intention was "generate the docs for the code in the test_package. Regardless if that was a reason expectation or user error :) notice how dartdoc started generating docs for the current directory.

What do you think about throwing an error if a user passes a command-line arg like this? The tool doesn't currently do anything with that, and the behavior might be misleading.

Or... we could use the command-line arg as the location of the input.

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work ontype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions