text: #!/usr/bin/env python
  # -----------------------------------------------------------------------------
  # Copyright (c) 2018-2022, NeXpy Development Team.
  #
  # Distributed under the terms of the Modified BSD License.
  #
  # The full license is in the file COPYING, distributed with this software.
  # -----------------------------------------------------------------------------
  
  import argparse
  import os
  
  from nxrefine.nxsettings import NXSettings
  
  
  def main():
  
      parser = argparse.ArgumentParser(
          description="Set default settings")
      parser.add_argument('-d', '--directory', nargs='?',
                          help='Directory containing the default settings')
      parser.add_argument('-i', '--input', action='store_true',
                          help='Input default parameters')
  
      args = parser.parse_args()
  
      if args.directory:
          settings = NXSettings(directory=os.path.realpath(args.directory))
      else:
          settings = NXSettings()
      print(f'Default settings stored in {settings.directory}')
      if args.input:
          settings.input_defaults()
  
  
  if __name__ == "__main__":
      main()
  