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 windows & unix style command line arguments #1

Merged
merged 5 commits into from
Oct 8, 2020
Merged

Added windows & unix style command line arguments #1

merged 5 commits into from
Oct 8, 2020

Conversation

IcemanEtika
Copy link
Contributor

I added argparse to allow for Windows and Unix style command line arguments. You can now use gus.py -f or --file index.html to check files, gus.py -v or --version to check for version info, and -h or --help for help.

Copy link
Owner

@slaterslater slaterslater left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • running the tool without arguments throws an error
  • importing the module through the python shell throws an error
  • deleting if name == "main" results in code running on import
  • deleting if len(source) == 0 allows empty string to be passed from python shell
  • help.txt allows for instructions to be viewed without running tool

@IcemanEtika
Copy link
Contributor Author

Thanks for the feedback, just fixed the errors. Let me know if everything works for you now

@slaterslater slaterslater merged commit 9a1f59c into slaterslater:master Oct 8, 2020
@slaterslater
Copy link
Owner

Thanks for the updates. Everything looks good.
I'm going to continue working on this, as there are more flags I would like the tool to accept

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.

2 participants