Skip to content

Commit

Permalink
Pull an optional contract identifier from CLI arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchPierias committed May 12, 2019
1 parent ea50a66 commit 8c404dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/lamington-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ConfigManager } from '../configManager';
* @author Mitch Pierias <github.com/MitchPierias>
*/
const run = async () => {
const contract = process.argv[2];
// Initialize configuration
await ConfigManager.initWithDefaults();
// Stop container if running
Expand All @@ -22,7 +23,7 @@ const run = async () => {
await startEos();
}
// Build all smart contracts
await buildAll();
await buildAll([contract]);
};

run().catch(error => {
Expand Down

0 comments on commit 8c404dd

Please sign in to comment.