diff --git a/pkgs/puppy/bin/puppy.dart b/pkgs/puppy/bin/puppy.dart index 450ac0ca..50c87809 100755 --- a/pkgs/puppy/bin/puppy.dart +++ b/pkgs/puppy/bin/puppy.dart @@ -3,11 +3,11 @@ // BSD-style license that can be found in the LICENSE file. import 'package:args/command_runner.dart'; +import 'package:puppy/src/constants.dart'; import 'package:puppy/src/map_command.dart'; Future main(List args) async { - var runner = CommandRunner( - 'dgit', 'A dart implementation of distributed version control.') + var runner = CommandRunner(cmdName, 'Dart repository management tools.') ..addCommand(MapCommand()); await runner.run(args); diff --git a/pkgs/puppy/lib/src/constants.dart b/pkgs/puppy/lib/src/constants.dart new file mode 100644 index 00000000..c1a32dd9 --- /dev/null +++ b/pkgs/puppy/lib/src/constants.dart @@ -0,0 +1 @@ +const cmdName = 'puppy'; diff --git a/pkgs/puppy/lib/src/map_command.dart b/pkgs/puppy/lib/src/map_command.dart index 4c74fdb4..5713a78e 100644 --- a/pkgs/puppy/lib/src/map_command.dart +++ b/pkgs/puppy/lib/src/map_command.dart @@ -9,6 +9,8 @@ import 'package:args/command_runner.dart'; import 'package:build_cli_annotations/build_cli_annotations.dart'; import 'package:io/ansi.dart'; +import 'constants.dart'; + part 'map_command.g.dart'; class MapCommand extends _$MapArgsCommand { @@ -40,7 +42,7 @@ class MapArgs { if (rest.isEmpty) { throw UsageException( 'Missing command to invoke!', - 'puppy map [--deep] ', + '$cmdName map [--deep] ', ); } }