diff --git a/adb_install.py b/adb_install.py index 2b076f7..89acd7a 100644 --- a/adb_install.py +++ b/adb_install.py @@ -47,7 +47,7 @@ def adbinstall_argparse(args): os.system(command) def main(argv): - argv = vlogging.set_level_by_argv(log, argv) + argv = vlogging.main_level_by_argv(argv) parser = argparse.ArgumentParser(description=__doc__) diff --git a/bitwise_or.py b/bitwise_or.py index 97372f1..79a109b 100644 --- a/bitwise_or.py +++ b/bitwise_or.py @@ -61,7 +61,7 @@ def bitwise_or_argparse(args): pipeable.stdout(output.absolute_path) def main(argv): - argv = vlogging.set_level_by_argv(log, argv) + argv = vlogging.main_level_by_argv(argv) parser = argparse.ArgumentParser(description=__doc__) diff --git a/fdroidapk.py b/fdroidapk.py index dd9c557..396be3f 100644 --- a/fdroidapk.py +++ b/fdroidapk.py @@ -117,7 +117,7 @@ def fpk_argparse(args): return return_status def main(argv): - argv = vlogging.set_level_by_argv(log, argv) + argv = vlogging.main_level_by_argv(argv) (notify_context, argv) = operatornotify.main_log_context(argv, subject='fdroidapk warnings') parser = argparse.ArgumentParser(description=__doc__) diff --git a/ffstreams.py b/ffstreams.py index 5e1f8da..a3373ec 100644 --- a/ffstreams.py +++ b/ffstreams.py @@ -132,7 +132,7 @@ def ffstreams_argparse(args): ) def main(argv): - argv = vlogging.set_level_by_argv(log, argv) + argv = vlogging.main_level_by_argv(argv) parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('input_filename', nargs='+') diff --git a/hash_hardlink.py b/hash_hardlink.py index 1d0bca2..4508ead 100644 --- a/hash_hardlink.py +++ b/hash_hardlink.py @@ -59,7 +59,7 @@ def hash_hardlink_argparse(args): os.link(leader.absolute_path, follower.absolute_path) def main(argv): - argv = vlogging.set_level_by_argv(log, argv) + argv = vlogging.main_level_by_argv(argv) parser = argparse.ArgumentParser(description=__doc__) diff --git a/heresmyclipboard.py b/heresmyclipboard.py index 0eeb084..bbc5df9 100644 --- a/heresmyclipboard.py +++ b/heresmyclipboard.py @@ -30,7 +30,7 @@ def heresmyclipboard_argparse(args): site.run(host='0.0.0.0', port=args.port) def main(argv): - argv = vlogging.set_level_by_argv(log, argv) + argv = vlogging.main_level_by_argv(argv) parser = argparse.ArgumentParser(description=__doc__) diff --git a/rarpar.py b/rarpar.py index c9e9093..70463ac 100644 --- a/rarpar.py +++ b/rarpar.py @@ -528,7 +528,7 @@ def rarpar_argparse(args): return status def main(argv): - argv = vlogging.set_level_by_argv(log, argv) + argv = vlogging.main_level_by_argv(argv) (notify_context, argv) = operatornotify.main_log_context(argv, subject='rarpar warnings') parser = argparse.ArgumentParser(description=__doc__) diff --git a/reserve_disk_space.py b/reserve_disk_space.py index cd11272..ae902a6 100644 --- a/reserve_disk_space.py +++ b/reserve_disk_space.py @@ -57,7 +57,7 @@ def reserve_disk_space_argparse(args): return 1 def main(argv): - argv = vlogging.set_level_by_argv(log, argv) + argv = vlogging.main_level_by_argv(argv) parser = argparse.ArgumentParser(description=__doc__) diff --git a/sole_subdir_lift.py b/sole_subdir_lift.py index 743b71d..94ebde8 100644 --- a/sole_subdir_lift.py +++ b/sole_subdir_lift.py @@ -56,7 +56,7 @@ def sole_lift_argparse(args): queue.append(directory.parent) def main(argv): - argv = vlogging.set_level_by_argv(log, argv) + argv = vlogging.main_level_by_argv(argv) parser = argparse.ArgumentParser(description=__doc__) diff --git a/stderr.py b/stderr.py index 3de866e..2ed45f3 100644 --- a/stderr.py +++ b/stderr.py @@ -13,7 +13,7 @@ def printstderr_argparse(args): pipeable.stderr(line) def main(argv): - argv = vlogging.set_level_by_argv(log, argv) + argv = vlogging.main_level_by_argv(argv) parser = argparse.ArgumentParser(description=__doc__) diff --git a/stdout.py b/stdout.py index 0574490..839c855 100644 --- a/stdout.py +++ b/stdout.py @@ -13,7 +13,7 @@ def printstdout_argparse(args): pipeable.stdout(line) def main(argv): - argv = vlogging.set_level_by_argv(log, argv) + argv = vlogging.main_level_by_argv(argv) parser = argparse.ArgumentParser(description=__doc__) diff --git a/stitch.py b/stitch.py index 304e912..765f1f1 100644 --- a/stitch.py +++ b/stitch.py @@ -44,7 +44,7 @@ def stitch_argparse(args): final_image.save(args.output) def main(argv): - argv = vlogging.set_level_by_argv(log, argv) + argv = vlogging.main_level_by_argv(argv) parser = argparse.ArgumentParser(description=__doc__)