No default option #5

Closed
opened 2019-05-23 10:47:19 +02:00 by laszlobortel · 0 comments
laszlobortel commented 2019-05-23 10:47:19 +02:00 (Migrated from github.com)

With no option given I get the standard usage message:

$ python ansible-maas.py
usage: ansible-maas.py [-l] [-h HOST] [-n] [-t] [--tag TAG] [-s] [--help]

Dynamically produce an Ansible inventory from Ubuntu MAAS.

optional arguments:
  -l, --list            List instances by tag. (default)
  -h HOST, --host HOST  Get variables relating to a specific instance.
  -n, --nodes           List all nodes registered under MAAS.
  -t, --tags            List all tags registered under MAAS.
  --tag TAG             Get details for a specific tag registered under MAAS.
  -s, --supported       List which MAAS API version are supported.
  --help                Show this help message and exit.

It is fine, but it states, that the "list" option is default, though it is not in fact.
Could you please make the "list" option default in accordance with the usage message or remove the "(default)" from the usage message?

With no option given I get the standard usage message: ``` $ python ansible-maas.py usage: ansible-maas.py [-l] [-h HOST] [-n] [-t] [--tag TAG] [-s] [--help] Dynamically produce an Ansible inventory from Ubuntu MAAS. optional arguments: -l, --list List instances by tag. (default) -h HOST, --host HOST Get variables relating to a specific instance. -n, --nodes List all nodes registered under MAAS. -t, --tags List all tags registered under MAAS. --tag TAG Get details for a specific tag registered under MAAS. -s, --supported List which MAAS API version are supported. --help Show this help message and exit. ``` It is fine, but it states, that the "list" option is default, though it is not in fact. Could you please make the "list" option default in accordance with the usage message or remove the "(default)" from the usage message?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mvdkleijn/ansible-maas#5
No description provided.