mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-07-04 17:48:52 +00:00
Restore ansible --version output (#55728)
* Add custom action class for version info * Use args from CLI as prog for ArgumentParser object * Make prog a required parameter of create_base_parser() and update all uses to pass in the newly required parameter. * Add unit test for checking ansible --version * Update other related unit tests
This commit is contained in:
parent
c195645575
commit
b3ce3fc5eb
7 changed files with 47 additions and 13 deletions
|
|
@ -40,7 +40,7 @@ class TestVaultCli(unittest.TestCase):
|
|||
self.tty_patcher.stop()
|
||||
|
||||
def test_parse_empty(self):
|
||||
cli = VaultCLI([])
|
||||
cli = VaultCLI(['vaultcli'])
|
||||
self.assertRaises(SystemExit,
|
||||
cli.parse)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue