# Plugin: add\_parser\_arguments() expected behavior?

**URL:** <https://community.letsencrypt.org/t/plugin-add-parser-arguments-expected-behavior/18141>\
**Category:** Client dev\
**Created:** [July 20, 2016, 8:09pm UTC](https://community.letsencrypt.org/t/plugin-add-parser-arguments-expected-behavior/18141 "2016-07-20T20:09:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DEQFBpQ](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@DEQFBpQ](https://community.letsencrypt.org/u/DEQFBpQ)\
**Post date:** [July 20, 2016, 8:09pm UTC](https://community.letsencrypt.org/t/plugin-add-parser-arguments-expected-behavior/18141/1 "2016-07-20T20:09:03Z")

</div>

I’ve written a plugin which has a required command line switch. In my plugin’s `add_parser_arguments()`, I specified `required=True`.

To my surprise, arguments required by my plugin are required even when not using my plugin.

Is that the expected behavior? I expected those arguments to be required only when certbot was invoked with `-a myplugin`

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [August 19, 2016, 8:09pm UTC](https://community.letsencrypt.org/t/plugin-add-parser-arguments-expected-behavior/18141/2 "2016-08-19T20:09:21Z")

</div>

Closed on August 19, 2016, 8:09pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
