Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
scripts: Make the -p arg optional
Browse files Browse the repository at this point in the history
Signed-off-by: Sayan Chowdhury <[email protected]>
  • Loading branch information
sayanchowdhury committed Apr 12, 2018
1 parent 0f8d6c0 commit 0dc560f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ a job manually. If Fedimg is installed properly, the `bin/trigger_upload.py`
script can be used for this purpose:

```
usage: trigger_upload.py [-h] -u URL -c COMPOSE_ID [-p PUSH_NOTIFICATIONS]
usage: trigger_upload.py [-h] -u URL -c COMPOSE_ID [-p]
Trigger a manual upload process with the specified raw.xz URL
Expand All @@ -30,7 +30,7 @@ optional arguments:
-u URL, --url URL .raw.xz URL
-c COMPOSE_ID, --compose-id COMPOSE_ID
compose id of the .raw.xz file
-p PUSH_NOTIFICATIONS, --push-notifications PUSH_NOTIFICATIONS
-p, --push-notifications
Bool to check if we need to push fedmsg notifications
```

Expand Down
4 changes: 2 additions & 2 deletions bin/trigger_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def get_args():
"-c", "--compose-id", type=str, help="compose id of the .raw.xz file",
required=True)
parser.add_argument(
"-p", "--push-notifications", type=bool,
"-p", "--push-notifications",
help="Bool to check if we need to push fedmsg notifications",
required=False, default=False)
action="store_true", required=False)
args = parser.parse_args()

return args.url, args.compose_id, args.push_notifications
Expand Down

0 comments on commit 0dc560f

Please sign in to comment.