- parser = ArgumentParser (description="manifoldupoader simple tester.")
- parser.add_argument ('credential_files',metavar='FILE',type=str,nargs='+',
- help="the filenames to upload")
- parser.add_argument ('-u','--url',dest='url', action='store',default=None,
- help='the URL of the manifold API')
- parser.add_argument ('-p','--platform',dest='platform',action='store',default=None,
- help='the manifold platform name')
- parser.add_argument ('-U','--user',dest='username',action='store',default=None,
- help='the manifold username')
- parser.add_argument ('-P','--password',dest='password',action='store',default=None,
- help='the manifold password')
- parser.add_argument ('-v','--verbose',dest='verbose',action='count',default=0,
- help='more and more verbose')
- args = parser.parse_args ()
-
- from sfa.util.sfalogging import sfi_logger
+ parser = ArgumentParser(description="manifoldupoader simple tester.")
+ parser.add_argument('credential_files', metavar='FILE', type=str, nargs='+',
+ help="the filenames to upload")
+ parser.add_argument('-u', '--url', dest='url', action='store', default=None,
+ help='the URL of the manifold API')
+ parser.add_argument('-p', '--platform', dest='platform',
+ action='store', default=None,
+ help='the manifold platform name')
+ parser.add_argument('-U', '--user', dest='username',
+ action='store', default=None,
+ help='the manifold username')
+ parser.add_argument('-P', '--password', dest='password',
+ action='store', default=None,
+ help='the manifold password')
+ parser.add_argument('-v', '--verbose', dest='verbose',
+ action='count', default=0,
+ help='more and more verbose')
+ args = parser.parse_args()
+
+ from sfa.util.sfalogging import init_logger, logger as sfi_logger
+ init_logger('console')