Beispiel #1
0
def main():
    arguments = argson.parse_file_and_arguments('examples/config/example.json')

    if arguments.test is True:
        print("test flag set")
    else:
        print("test flag not set")
Beispiel #2
0
def main():
    arguments = argson.parse_file_and_arguments(
        'config/example.json', working_dir=PATH, no_builtins=True, verbose=True)

    if arguments.test is True:
        print("test flag set")
    else:
        print("test flag not set")
def main():
    arguments = argson.parse_file_and_arguments('config/example.json', defaults_file='config/example.defaults.json', working_dir=PATH)
    print(arguments.string_to_print)
Beispiel #4
0
import argson

arguments = argson.parse_file_and_arguments()
print(arguments.string_to_print)
Beispiel #5
0
def main():
    argson.parse_file_and_arguments('config/example.json', self_file='config/self-example.json', working_dir=PATH)
    print("err... you probably want to run this file with the flag '--help' to see the effects of self_file argument")