diff --git a/NodeApp/src/commander/exercise/subcommands/ExerciseRunCommand.ts b/NodeApp/src/commander/exercise/subcommands/ExerciseRunCommand.ts index 061c9cbc65808d819927ab1c5aefad2e11c4f84a..708e8c07293b23338b0dfad54a22f837c464e88a 100644 --- a/NodeApp/src/commander/exercise/subcommands/ExerciseRunCommand.ts +++ b/NodeApp/src/commander/exercise/subcommands/ExerciseRunCommand.ts @@ -7,7 +7,7 @@ class ExerciseRunCommand extends CommanderCommand { protected commandName: string = 'run'; protected defineCommand() { - GlobalHelper.runCommandDefinition(this.command) + GlobalHelper.runCommandDefinition(this.command, false) .description('locally run an exercise') .action(this.commandAction.bind(this)); } diff --git a/NodeApp/src/helpers/GlobalHelper.ts b/NodeApp/src/helpers/GlobalHelper.ts index dc9d2442afe43d4e9b16d077fa3c0dd17ad3abf5..fcb6418503f91d8719355eb60f159038f95e6eba 100644 --- a/NodeApp/src/helpers/GlobalHelper.ts +++ b/NodeApp/src/helpers/GlobalHelper.ts @@ -8,9 +8,9 @@ import Config from '../config/Config'; class GlobalHelper { - public runCommandDefinition(command: Command) { + public runCommandDefinition(command: Command, isAssignment: boolean = true): Command { command - .option('-p, --path <value>', 'assignment path', Config.folders.defaultLocalExercise) + .option('-p, --path <value>', `${ isAssignment ? 'assignment' : 'exercise' } path`, Config.folders.defaultLocalExercise) .option('-v, --verbose', 'verbose mode - display principal container output in live') .addOption(new Option('-w, --super-verbose', 'verbose mode - display all docker compose logs (build included) in live').conflicts('verbose')) .addOption(new Option('--verbose-ssj2').hideHelp().implies({ superVerbose: true }));