original_docstring: Entry point of command line application.
docstring: Entry point of command line application.
docstring_tokens: Entry point of command line application .
code: def main():
      """Entry point of command line application."""
  
      if len(sys.argv) < 2:
          print(__USAGE__, file=sys.stderr)
          return 1
  
      cmd = sys.argv[1].strip().lower()
  
      if cmd == "impact-lattice":
          import impact_lattice
          return impact_lattice.main()
  
      elif cmd == "impact-settings":
          import impact_settings
          return impact_settings.main()
  
      elif cmd == "impact-vastart":
          import impact_vastart
          return impact_vastart.main()
  
      elif cmd == "impact-model":
          import impact_model
          return impact_model.main()
  
      elif cmd == "cfutil-export":
          import cfutil_export
          return cfutil_export.main()
  
      elif cmd == "frib-layout":
          from phyutil.phytool import frib_layout
          return frib_layout.main()
  
      elif cmd == "frib-channels":
          from phyutil.phytool import frib_channels
          return frib_channels.main()
  
      elif cmd == "help":
          return print_help()
  
      else:
          print(__USAGE__, file=sys.stderr)
          print("Unrecognized command: {}".format(cmd), file=sys.stderr)
          return 1
code_tokens: def main ( ) : if len ( sys . argv ) < 2 : print ( __USAGE__ , file = sys . stderr ) return 1 cmd = sys . argv [ 1 ] . strip ( ) . lower ( ) if cmd == "impact-lattice" : import impact_lattice return impact_lattice . main ( ) elif cmd == "impact-settings" : import impact_settings return impact_settings . main ( ) elif cmd == "impact-vastart" : import impact_vastart return impact_vastart . main ( ) elif cmd == "impact-model" : import impact_model return impact_model . main ( ) elif cmd == "cfutil-export" : import cfutil_export return cfutil_export . main ( ) elif cmd == "frib-layout" : from phyutil . phytool import frib_layout return frib_layout . main ( ) elif cmd == "frib-channels" : from phyutil . phytool import frib_channels return frib_channels . main ( ) elif cmd == "help" : return print_help ( ) else : print ( __USAGE__ , file = sys . stderr ) print ( "Unrecognized command: {}" . format ( cmd ) , file = sys . stderr ) return 1
short_docstring: Entry point of command line application.
short_docstring_tokens: Entry point of command line application .
comment: """Entry point of command line application."""