Skip to content

Commit 9f0dd98

Browse files
committed
Make device_id and message optional arguments
1 parent a64fa9c commit 9f0dd98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gcm/management/commands/gcm_messenger.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class Command(BaseCommand):
1111
help = 'Send message through gcm api'
1212

1313
def add_arguments(self, parser):
14-
parser.add_argument('device_id', nargs='+', type=int)
15-
parser.add_argument('message', nargs='+', type=str)
14+
parser.add_argument('device_id', nargs='?', type=int)
15+
parser.add_argument('message', nargs='?', type=str)
1616
parser.add_argument(
1717
'--devices',
1818
action='store_true',

0 commit comments

Comments
 (0)