Commit 03e95b96 authored by Gaute Hope's avatar Gaute Hope

fix typo, switchable usage

parent ee6d37a1
......@@ -42,9 +42,11 @@ if poscorrect_isset == False:
os.putenv ("POSIXLY_CORRECT", "enabled")
manual_poscorrect = True
sys.stderr.write(_("Gnome Schedule: Export tasks.") + "\n")
sys.stderr.write(_("Usage: %s [output file]" % sys.argv[0]) + "\n")
sys.stderr.write(_(" No file means export to stdout.") + "\n\n")
sys.stderr.write(_("Gnome Schedule: Export tasks") + "\n")
if ("-h" in sys.argv) or ("--help" in sys.argv):
sys.stderr.write(_("Usage: %s [output file]" % sys.argv[0]) + "\n")
sys.stderr.write(_(" No file means export to stdout.") + "\n\n")
sys.exit(0)
# Parse arguments
......
......@@ -60,9 +60,11 @@ user_shell = pwd.getpwuid (uid)[6]
if uid == 0: is_root = True
else: is_root = False
sys.stderr.write(_("Gnome Schedule: Import tasks tasks.") + "\n")
sys.stderr.write(_("Usage: %s [input file]" % sys.argv[0]) + "\n")
sys.stderr.write(_(" No file means import from stdin.") + "\n\n")
sys.stderr.write(_("Gnome Schedule: Import tasks") + "\n")
if ("-h" in sys.argv) or ("--help" in sys.argv):
sys.stderr.write(_("Usage: %s [input file]" % sys.argv[0]) + "\n")
sys.stderr.write(_(" No file means import from stdin.") + "\n\n")
sys.exit(0)
# Check file
if outf != False:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment