mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			350 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			350 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.core.management.base import BaseCommand
 | |
| 
 | |
| 
 | |
| class Command(BaseCommand):
 | |
| 
 | |
|     def add_arguments(self, parser):
 | |
|         parser.add_argument('-n', '--need-me', required=True)
 | |
|         parser.add_argument('-t', '--need-me-too', required=True, dest='needme2')
 | |
| 
 | |
|     def handle(self, *args, **options):
 | |
|         self.stdout.write(','.join(options))
 |