Skip to content

Commit

Permalink
clean up __main__
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad88me committed Sep 17, 2023
1 parent e4dbcf1 commit a797a3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ specify the appropriate arguments (e.g., ` python -m django-rest-gen --settings

## Arguments
```
usage: django-rest-gen [-h] [--pythonpath PYTHONPATH] --settings SETTINGS --apppath APPPATH [--views VIEWS]
usage: django-rest-gen [-h] [--pythonpath PYTHONPATH] --settings SETTINGS --apppath APPPATH
Generate Django REST API code
Expand All @@ -20,7 +20,6 @@ optional arguments:
Python Path directory.
--settings SETTINGS The path to the django project settings
--apppath APPPATH The path to the app
--views VIEWS The path to the views file
```


Expand Down
1 change: 0 additions & 1 deletion src/django-rest-gen/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ def main():
parser.add_argument('--pythonpath', default=".", help="Python Path directory. ")
parser.add_argument('--settings', required=True, help="The path to the django project settings")
parser.add_argument('--apppath', required=True, help="The path to the app")
parser.add_argument('--views', default=None, help="The path to the views file")
args = parser.parse_args()
print(f"args: {args}")
base_path = os.path.abspath('.')
Expand Down

0 comments on commit a797a3e

Please sign in to comment.