Skip to content

den prints usage twice #7

@zoechi

Description

@zoechi

I just tried den and found it weird that den without arguments produces this output:

 (master) $ den

den.dart: error: Must specify a sub-command.

Description:

  A pubspec authoring tool

Usage:

  den.dart [options] <command> [<args>]

Options:

  -h, --help    Print this usage information.

Commands:

  install       Add or modify dependencies          
  uninstall     Remove dependencies                 
  fetch         Show any outdated dependencies      
  pull          Update any outdated dependencies    
  completion    Tab completion for this command.    

  See 'den.dart help [command]' for more information about a command.

/home/myuser/.pub-cache/bin/den: 12: /home/myuser/.pub-cache/bin/den: [[: not found

den.dart: error: Must specify a sub-command.

Description:

  A pubspec authoring tool

Usage:

  den.dart [options] <command> [<args>]

Options:

  -h, --help    Print this usage information.

Commands:

  install       Add or modify dependencies          
  uninstall     Remove dependencies                 
  fetch         Show any outdated dependencies      
  pull          Update any outdated dependencies    
  completion    Tab completion for this command.    

  See 'den.dart help [command]' for more information about a command.

The first half is nicely colorized the second (starting from Description) monochrome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions