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

Added the feature that get input through flags #179

Open
wants to merge 3 commits into
base: feature/python3.8
Choose a base branch
from

Conversation

lazy8055
Copy link

@lazy8055 lazy8055 commented Oct 3, 2021

Description

In feature/python3.8 branch, ipscanner.py in src folder is modified

Instead of getting the input from user and access the config.json file for inputs, getting the input from the user through flags is easy.So i add a feature that get the inputs through flags if any flag is not used , it get the input in the formal way.

For the user, it easy to use flags than each time changing the config.json file

Here, the range is from 0 to 255, number of thread is 8 and the ip address is 194.165.43.2

Here the '-i' flag is not used , so it get input from the user in the formal way

Flags:

  • '-i' or '--ip' flag is used to get the ip address
  • '-r' or '--range' flag is used to get range for ip (i.e: 0-255)
  • '-t' or '--thread' flag is used to get the number of threads to be used

@welcome
Copy link

welcome bot commented Oct 3, 2021

Thanks for opening this pull request! 🤗
Are you looking for more beginner-friendly issues? Check out this repo.

Hacktoberfest2020

Open Source Love

Check out few other repos below 🚀

inspirational-quotes
SimpleBio
HBD
Map Of India

PS: Please add @vinitshahdeo / @Kashish121 / @ishika1727 as a reviewer if you haven't added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant