Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print help if no arguments passed to typo.py #18

Open
corneliusroemer opened this issue Sep 8, 2024 · 0 comments
Open

Print help if no arguments passed to typo.py #18

corneliusroemer opened this issue Sep 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@corneliusroemer
Copy link

corneliusroemer commented Sep 8, 2024

It's customary to print usage/help if a user doesn't pass any arguments or options to a program that expects an input.

Current behaviour:

$ python ail_typo_squatting/typo.py
[-] No Entry

Expected:

$ python ail_typo_squatting/typo.py
usage: typo.py [-h] [-v] [-dn DOMAINNAME [DOMAINNAME ...]] [-fdn FILEDOMAINNAME] [-o OUTPUT] [-fo FORMATOUTPUT] [-br] [-dnsr] [-dnsl]
               [-l LIMIT] [-var] [-ko] [-a] [-om] [-repe] [-repl] [-drepl] [-cho] [-add] [-md] [-sd] [-vs] [-ada] [-hg] [-ahg] [-cm] [-hp]
               [-wt] [-wsld] [-at] [-sub] [-sp] [-cdd] [-addns] [-uddns] [-ns] [-combo] [-ca]

options:
  -h, --help            show this help message and exit
  -v                    verbose, more display
  -dn DOMAINNAME [DOMAINNAME ...], --domainName DOMAINNAME [DOMAINNAME ...]
                        list of domain name
  -fdn FILEDOMAINNAME, --filedomainName FILEDOMAINNAME
                        file containing list of domain name
  -o OUTPUT, --output OUTPUT
                        path to ouput location
  -fo FORMATOUTPUT, --formatoutput FORMATOUTPUT
                        format for the output file,
...snip
@adulau adulau added the enhancement New feature or request label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants