old_contents: from django.core.management.base import BaseCommand, CommandError               
  from analytics.report_builder import ReportBuilder
  
  
  class Command(BaseCommand):
      args = "<subaccount_id> <term_id>"
      help = "Create report of subaccount activity."
  
      def handle(self, *args, **options):
          report_builder = ReportBuilder()
          
          if len(args) == 2:
              subaccount_id = args[0]
              term_id = args[1]
          else:
              raise CommandError("build_subaccount_activity_report <subaccount_id> <term_id>")
  
          report_builder.build_subaccount_activity_report(subaccount_id, term_id)
  
new_contents: from django.core.management.base import BaseCommand, CommandError
  from analytics.report_builder import ReportBuilder
  
  
  class Command(BaseCommand):
      help = "Create report of subaccount activity."
  
      def add_arguments(self, parser):
          parser.add_argument('subaccount_id')
          parser.add_argument('term_id')
  
      def handle(self, *args, **options):
          report_builder = ReportBuilder()
  
          subaccount_id = options['subaccount_id']
          term_id = options['term_id']
  
          report_builder.build_subaccount_activity_report(subaccount_id, term_id)
  
subject: use add_arguments