Skip to content

Commit

Permalink
fix: make help always the default command (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi authored Jan 9, 2023
1 parent 1e81c62 commit 7f5aeea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/Common/default.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ifndef SIGWIN_INFRA_ROOT
$(error SIGWIN_INFRA_ROOT must be defined before loading Common/default.mk)
endif

.DEFAULT_GOAL := help
.DEPRECATED:
$(warning NOTE: target "${DEPRECATED_FROM}" has been deprecated, use "${DEPRECATED_TO}" instead.)

Expand Down
8 changes: 8 additions & 0 deletions tests/functional/MakefileTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ public function testMakefileHasHelp(): void
static::assertSame($expected, $actual);
}

public function testHelpIsTheDefaultCommand(): void
{
$expected = $this->dryRun($this->getMakefilePath(), 'help');
$actual = $this->dryRun($this->getMakefilePath());

static::assertSame($expected, $actual);
}

/**
* @dataProvider generateHelpCommandsExecutionPathFixtures
*/
Expand Down

0 comments on commit 7f5aeea

Please sign in to comment.