Skip to content

Commit

Permalink
Update readme with up-to-date API.
Browse files Browse the repository at this point in the history
  • Loading branch information
xforever1313 committed Jan 2, 2020
1 parent 0192fbb commit 0fff2c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ Task( "delete_files" )
.Does(
( context ) =>
{
DeleteHelpersConfig config = ArgumentBinder.FromArguments<DeleteHelpersConfig>( context );
DeleteHelpersConfig config = CreateFromArguments<DeleteHelpersConfig>();
DeleteHelpers.DeleteFiles( context, config );
}
)
.Description( ArgumentBinder.GetDescription<DeleteHelpersConfig>( "Deletes specified files." ) );
.DescriptionFromArguments<DeleteHelpersConfig>( "Deletes specified files." );
```

Now, if you type ```cake --showdescription``` on the command line, you will see a print out of the task and
Expand Down Expand Up @@ -164,7 +164,7 @@ Best Practices

TroubleShooting
--------
* Ensure that in the classes that you are binding arguments to, you include the using statement ```using Cake.ArgumentBinder;```,
* Ensure that in the classes that you are binding arguments to, you _may_ need to include the using statement ```using Cake.ArgumentBinder;```,
otherwise the compiler won't be able to find the attributes, and produce a lot of errors.

License
Expand Down

0 comments on commit 0fff2c7

Please sign in to comment.