# Multiple annotate files?

**URL:** https://dmap-community.ductus.global/t/multiple-annotate-files/4032
**Category:** YANG
**Created:** [March 21, 2022, 7:35pm UTC](https://dmap-community.ductus.global/t/multiple-annotate-files/4032 "2022-03-21T19:35:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![colinmc](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@colinmc](https://dmap-community.ductus.global/u/colinmc)
#### Post date: [March 21, 2022, 7:35pm UTC](https://dmap-community.ductus.global/t/multiple-annotate-files/4032/1 "2022-03-21T19:35:34Z")

</div>

Is there a way to use multiple files with annotate, or do I need to put all the tailf:annotate entries for a module in the same file?

When I used to use “augment” to augment a main module, I could have an ann file for each module that augmented the main module.

Not that the main module uses “`uses`”, I cannot just modify to compile with “`-a *-ann.yang`”. It wants one single ann file.

So do I need to move all those annotate entries into one single ann file? Or is there a way to organize them hierarchically similar to how “`uses`” and “`grouping`” works?

---

<div class="post-metadata">

### Author: ![mvf](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mvf/32/182_2.png) [@mvf](https://dmap-community.ductus.global/u/mvf)
#### Post date: [March 22, 2022, 9:46am UTC](https://dmap-community.ductus.global/t/multiple-annotate-files/4032/2 "2022-03-22T09:46:57Z")

</div>

Nothing stops you from doing `-a mod-ann1.yang -a mod-ann2.yang` - the convention that the annotation modules are named `*-ann.yang` is just that, a convention.

---

<div class="post-metadata">

### Author: ![colinmc](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@colinmc](https://dmap-community.ductus.global/u/colinmc)
#### Post date: [March 22, 2022, 2:45pm UTC](https://dmap-community.ductus.global/t/multiple-annotate-files/4032/3 "2022-03-22T14:45:45Z")

</div>

Oh, I did not know I could use `-a` multiple times. That should solve my issue.
