from argparse import ArgumentParser
parser = ArgumentParser(usage="Here is usagage")
parser.add_argument("positional",nargs="*")
parser.add_argument("--flag")
if __name__ == "__main__":
args = parser.parse_args()
if args.positional and not args.flag:
print("i'm positional")
elif args.flag and not args.flag:
print ("i'm flag")
else:
raise Exception("RTFM")